ctxSaveTrace
Record a problem and solution trace after resolving a task for future context retrieval.
Instructions
Record a problem+solution trace after resolving a task. Future sessions see it via ctxQueryTraces and the session-start digest. Keep problem + solution to one line each.
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": {
"ref": "<ref>",
"problem": "<problem>",
"solution": "<solution>"
},
"name": "ctxSaveTrace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | What the trace is about: issue ref (#42), PR ref (PR-42), commit SHA, or short free text. | |
| tags | No | Up to 10 short labels for search (`flaky-test`, `perf`, `security`, `migration`). Each ≤32 chars. | |
| problem | Yes | One-line summary of the problem. What was broken or unclear? | |
| solution | Yes | One-line summary of the fix. What was the root cause and what resolved it? |