agy_purge
Delete session-store job directories older than the specified days, returning removed job IDs and remaining job count. Days must be a positive integer up to 3650 to avoid accidental wipe.
Instructions
Delete session-store job directories whose mtime is older than days. Returns the removed job ids and a coarse count of remaining jobs. days must be a positive integer <= 3650; zero or negative values are rejected to avoid an accidental wipe via off-by-one config.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agy_purge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| error | No | ||
| removed | No | ||
| success | Yes | ||
| remaining | No | ||
| removed_count | No |