put_context
Add or update contextual data by name, with optional metadata. Supports single entries or bulk operations for managing context.
Instructions
Add or update context by name. Supports both single and bulk operations.
Single: provide 'name' (str), 'text' (str, markdown content), and optional 'metadata' (dict). Bulk: provide 'contexts' (list[dict]) where each dict has 'name', 'text', optional 'metadata'. Names must be filename-safe (alphanumeric, hyphens, underscores). Overwrites existing contexts with a warning. Contexts are stored as .mdc files (markdown with YAML frontmatter).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| text | No | ||
| metadata | No | ||
| contexts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||