Quick Start
1
Zero-config (default retention)
~/.praisonai/cache/tool_outputs/.2
Custom retention
How It Works
What the Agent Sees
Configuration
Storage Layout
run_id is supplied β i.e. get_tool_output_store() is called with no argument outside of an agent run β the store returns a fresh, un-cached instance scoped to a new auto-generated UUID. It does not adopt whichever store happens to be live process-wide, so outputs from unrelated runs never share a directory.
Retrieve Programmatically
Common Patterns
Long-running research agents β web search bodies are stored when truncated; the agent reads them back in a follow-up turn. Pair with per-tool budgets β combine with Context Per-Tool Budgets for fine-grained limits. Short retention on CI β setPRAISONAI_TOOL_OUTPUT_RETENTION_HOURS=1 on shared runners.
Best Practices
Don't store secrets
Don't store secrets
Outputs are plaintext on disk β avoid tools that return credentials or tokens into the store.
Use stable run_id when chaining runs
Use stable run_id when chaining runs
Pass a consistent
run_id to get_tool_output_store(run_id=...) when multiple agents share one session.Isolation is automatic inside agents
Isolation is automatic inside agents
Inside an agent run,
run_id is threaded through automatically from the agentβs internal run context. You do not need to pass it yourself β overflow outputs go under ~/.praisonai/cache/tool_outputs/<run_id>/ scoped to that run. If you build a workflow that shares outputs across agents, pass a stable run_id explicitly to get_tool_output_store(run_id=...) so they land in the same directory.Combine with per-tool budgets
Combine with per-tool budgets
Use per-tool budgets to control inline size; the store handles anything that still overflows.
Not the same as Tool Output Spill. This store handles arbitrary large tool return values with time-based retention under
~/.praisonai/cache/ (PRAISONAI_TOOL_OUTPUT_RETENTION_HOURS). Tool Output Spill is specific to execute_command and uses a different dir (PRAISONAI_TOOL_OUTPUT_DIR) with process-exit cleanup.Related
Tool Output Spill
Save large
execute_command output to a retrievable artifactContext Per-Tool Budgets
Per-tool truncation limits
Context Window Management
Overflow and compaction strategies
Context Management
Agent context lifecycle

