context_add
Save a project rule, decision, constraint, or note so later sessions and other agents can see it. Use when the user asks you to remember something for this project.
Instructions
Save a rule, decision, constraint or note for the current project, so later sessions and other agents see it. Use it when the user asks you to remember something for this project. Instructions (kind=instruction) are delivered with every task_start by default; other kinds are delivered when they match the task. To change or retire an existing record, find it with context_list and use context_update instead of adding a duplicate. Longer reusable documentation belongs in knowledge: knowledge_search and knowledge_read find and read it, and knowledge_create writes it when Istok runs with --tools full; otherwise ask the user to add it with istok knowledge add.
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": {
"title": "<title>"
},
"name": "context_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional context body. | |
| kind | No | Context kind: note, decision, instruction, or constraint. | |
| tags | No | Optional context tags. | |
| scope | No | Instruction scope. | |
| title | Yes | Context title; must not be blank. | |
| source | No | Context source: user, agent, or import. | |
| delivery | No | Delivery mode: always, ranked, or manual. | |
| priority | No | Instruction priority. | |
| expires_at | No | Optional RFC3339 expiry timestamp. | |
| visibility | No | Future sync visibility: shared or local_only. | |
| sensitivity | No | Context sensitivity: normal or private. | |
| review_after | No | Optional RFC3339 review timestamp. | |
| superseded_by | No | Optional UUIDv7 of the active replacement record. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| context | No | ||
| schema_version | Yes |