list_source
List source code in a debugging session, starting at a specified function or file:line, or continue scrolling forward with repeated calls.
Instructions
List source code (GDB 'list' / 'l').
location: function name, file:line, or omit to list around the current position. Call repeatedly with no location to scroll forward.
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": "list_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |