Start User-Space Debugging
debug_startStart a native Linux GDB/MI debug session on an idle Bash session via an exclusive managed lease, launching an ELF or attaching to an isolated PID.
Instructions
Start native Linux user-space GDB/MI on an idle Bash Session using an exclusive managed lease. ChannelTerm, GDB, gdbserver, and ELF must share one Linux environment. PID omitted launches with isolated I/O; attach rejects controlling terminals, pipes, sockets, or shared character devices. Single inferior, multithreaded, all-stop only. Reuse owner and request_id unchanged to retry.
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": {
"owner": "<owner>",
"session_id": "<session_id>",
"request_id": "<request_id>",
"elf": "<elf>"
},
"name": "debug_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf | Yes | Absolute executable ELF path; must match native Linux architecture and attached /proc/PID/exe. | |
| gdb | No | Absolute executable path; defaults to executable found on Host PATH. | |
| pid | No | Existing isolated process PID; omit or zero to launch. Attach never permits terminate. | |
| args | No | Launch arguments; at most 128. No shell expansion. | |
| owner | Yes | Secret random capability, 32..128 characters; retain for retries and all calls. Never publish it in events. | |
| gdbserver | No | Absolute executable path; defaults to executable found on Host PATH. | |
| request_id | Yes | Unique start request ID, 1..128 characters. Conflicting reuse is rejected. | |
| session_id | Yes | Active Session ID or short reference. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes |