Evaluate a GDB expression to inspect variable values, memory, or registers using optional formatting.
Instructions
Print/evaluate a GDB expression (GDB 'print' / 'p').
expression: any GDB expression — variable, cast, function call, etc. fmt: optional output format: x=hex, d=decimal, o=octal, t=binary, f=float, s=string, c=char, a=address e.g. fmt="x" → "print /x expression"
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>",
"expression": "<expression>"
},
"name": "print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | ||
| expression | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |