Interrupt gdb
gdb_interruptInterrupt a hanging debug session by sending SIGINT, then retrieve incremental output after the GDB prompt appears.
Instructions
Send SIGINT to the gdb session/debuggee, wait for the GDB prompt, and return incremental 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_interrupt"
}
}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. |
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 | ||
| interrupted | Yes |