cache_store
Store tool results in a persistent cache with configurable TTL, preventing redundant re-runs of expensive operations.
Instructions
Store a tool result in the persistent cache with a TTL. Prevents re-running the same expensive operation twice. Recommended: set key = make_cache_key(tool_name, args).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Cache key (use make_cache_key helper for deterministic keys). | |
| value | Yes | Result to store (JSON string or plain text). | |
| ttl_seconds | No | How long to keep (default 1 hour). Use 0 for no expiry. | |
| namespace | No | Logical group (e.g. "web", "files", "default"). | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||