Set the retention policy
set_storage_policySet how long the organization keeps its storage: output_file_days (files runs save), upload_file_days (uploaded files) and state_days (state entries, counted from their last write), each 1 to 3650 days, or null to keep them; a field you leave out keeps its current value. It applies to what is stored now as well as later: anything older is deleted within minutes. A file's own expiry or keep setting (update_file) and a state entry's ttl_seconds take precedence. Needs an administrator key.
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": "set_storage_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state_days | No | Delete state entries this many days after they were last written. | |
| output_file_days | No | Delete run output files this many days after they were saved. | |
| upload_file_days | No | Delete uploaded files this many days after they were uploaded. |