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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text_or_path": "<text_or_path>"
},
"name": "set_domain_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | default | |
| text_or_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||