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.

See our full list of example prompts Here.

UI Example
UI Example for Context
MCP Tool Reference: context

URI: /.../context

Description: Operations (action): set, get, list, delete

Request fields:

ParameterTypeDescription
actionenum
keystringrequired for set/get/delete
valueobjectrequired for set
ttlnumberseconds; optional; default 24h per description
prefixstringfor list filtering
topicstringfor list filtering; e.g., metrics/config/scratchpad
Resources

Need Help? Visit our PaxAI Help page.

Visit our Discord.

Email our Support Team AX Team.