state_prune
Remove outdated agent state checkpoints by age, previewing matches by default; set confirm=true to delete records older than max_age.
Instructions
Prune old agent state checkpoints. Defaults to dry-run; pass confirm=true to delete records older than max_age.
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": {
"max_age": "<max_age>"
},
"name": "state_prune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | When true, delete matching records; false or omitted performs a dry-run. | |
| max_age | Yes | Duration such as 720h or 168h. Must be positive. |