OpenImageDebugger MCP
v0.3.6MCP server giving AI agents eyes on OpenImageDebugger buffers in live gdb/lldb sessions
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_sessions
List live OID debug sessions and viewer windows this server can reach. Each viewer shows its debugger_pid pairing (None for a standalone oidwindow), so a caller can target either a debugger's session pid or its viewer window explicitly.
list_buffers
List symbols observable as image buffers at the current stop. session: a debugger or viewer pid from list_sessions(); defaults to the most recently started live debugger session, or the most recently started live viewer window if none is live.
| Parameter | Type | Description |
|---|---|---|
session |
view
Look at a buffer as an image. region: [x, y, w, h] crop in displayed coordinates (the stateless zoom: view the whole buffer, spot the artifact, view that region). channel: render one storage channel as grayscale. vmin/vmax: fix the normalization range (comparable across buffers); default normalizes per channel over the full buffer, so zooming never changes brightness. NaN pixels render magenta.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | |
channel | ||
max_px | integer | |
region | ||
session | ||
vmax | ||
vmin |
stats
Per-channel min/max/mean/std and NaN/Inf/zero counts.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | |
region | ||
session |
values
Exact pixel values for a small crop (at most 1024 numbers).
| Parameter | Type | Description |
|---|---|---|
h * | integer | |
symbol * | string | |
w * | integer | |
x * | integer | |
y * | integer | |
channel | ||
session |
dump
Save the buffer losslessly as .npy; returns the file path. Refuses to overwrite an existing file unless overwrite=true, so an unintended path cannot clobber your data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | |
overwrite | boolean | |
path | ||
session |
plot
Mirror a buffer into the human's OID viewer window.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | |
session |
set_view
Set the OID viewer's view of a buffer (absolute/idempotent). Only the fields you pass are changed; omitted fields keep their current value. session: a viewer pid or a paired debugger pid, as for the pixel tools. channel selects a single display channel by 0-based index (``0``, ``1``, ``2``) or ``"all"`` to restore the natural layout. auto_contrast is a global viewer setting (not per-buffer), matching get_view.
| Parameter | Type | Description |
|---|---|---|
auto_contrast | ||
buffer | ||
center | ||
channel | ||
rotation_deg | ||
session | ||
zoom |
get_view
Read the OID viewer's current view state. Returns buffer/center/zoom/rotation_deg/channel/auto_contrast. auto_contrast is global (not per-buffer).
| Parameter | Type | Description |
|---|---|---|
session |