Execute gdb command
gdb_execExecute a GDB debugging command and retrieve all output since the prior command. An empty command polls for new output.
Instructions
Send a gdb command and return all output since the previous gdb_exec or gdb_interrupt call. Empty command only polls output.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "gdb_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| timeout | No | ||
| max_output_bytes | No | Optional maximum returned output size in bytes. Keeps the tail with a truncation marker. | |
| command | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| completion_reason | Yes | ||
| saw_prompt | Yes | ||
| timed_out | Yes | ||
| session_exited | Yes | ||
| at_prompt | Yes | ||
| command_pending | Yes | ||
| needs_interrupt | Yes | ||
| bytes | Yes | ||
| duration_ms | Yes | ||
| truncated | Yes | ||
| omitted_bytes | Yes | ||
| internal_buffer_bytes | Yes |