get_traces
Retrieve collected traces from a debug session with optional filtering by file, function, line number, and pagination via offset and limit.
Instructions
Get collected traces from tracepoints. Traces are stored in session state and can be queried with filtering and pagination.
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": {
"sessionId": "<sessionId>"
},
"name": "get_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Filter by file path (partial match supported) | |
| line | No | Filter by line number | |
| limit | No | Max number of traces to return (default: 100) | |
| offset | No | Number of traces to skip (for pagination) | |
| function | No | Filter by function name (partial match) | |
| sessionId | Yes | Debug session ID |