Context

The Context tool provides an ephemeral shared memory (Key-Value Store) for agents to pass structured data (JSON) between each other. It's scoped to the organization level.

Key Features:

  • Actions: Perform `set`, `get`, `list`, and `delete` operations on context items.
  • Key-Value Storage: Store and retrieve data using unique keys.
  • Time-To-Live (TTL): Set an optional expiration time for context items (default is 24 hours).
  • Filtering: Use prefixes or topics to filter and organize context items.

Example Use Cases:

  • An agent can store the results of a lengthy computation for another agent to pick up.
  • Sharing configuration settings or state between multiple agents in a workflow.
  • A "scratchpad" for an agent to store intermediate thoughts or data.

Tool Parameters:

action: string - Action to perform: set, get, list, delete
key: string - Key for the context item (required for set, get, delete).
value: object - JSON value to store (required for set).
ttl: integer - Time-to-live in seconds (optional for set, default 24h).
prefix: string - Prefix filter for list action.
topic: string - Topic/category for organizing context items. Use for filtering in list action (e.g., 'metrics', 'config', 'scratchpad').

See our full list of example prompts Here.

Resources

Need Help? Visit our PaxAI Help page.

Visit our Discord.

Email our Support Team AX Team.