set_domain_context
Register domain context (SOP, glossary, process description) by name for automatic inclusion in prompts. Accepts file path or inline text, overwrites on reuse.
Instructions
Register a domain context (SOP, glossary, process description) under name.
text_or_path is treated as a file path if it resolves to an existing
readable file; otherwise as inline text. Subsequent calls with the same
name overwrite the stored value. Subsequent prompt invocations prepend
the stored context to their instructions.
Limits: 20 KB per context (raises WorkspaceError if exceeded),
16 named contexts max.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | default | |
| text_or_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||