batch_commands
Execute multiple GDB commands sequentially in a single request to reduce round-trips. Optionally halt the batch on the first error.
Instructions
Execute a list of GDB commands sequentially and return each output.
Useful to avoid multiple round-trips, e.g.: ["file /bin/ls", "break main", "run -la"] stop_on_error: halt the batch on the first GdbError (default: continue).
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>",
"commands": "<commands>"
},
"name": "batch_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| commands | Yes | ||
| session_id | Yes | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |