Record durable knowledge
add_contextRecord decisions, conventions, gotchas, and preferences as persistent context that outlives a task. Omit project and cwd to apply the knowledge account-wide.
Instructions
Knowledge that outlives a task: decision, convention, gotcha, preference. Omit project and cwd to make it account-wide.
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": {
"kind": "<kind>",
"title": "<title>",
"body": "<body>"
},
"name": "add_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory, used if project is omitted | |
| body | Yes | ||
| kind | Yes | ||
| model | No | Your model id, e.g. 'claude-opus-5'. | |
| title | Yes | ||
| project | No | Omit to apply across every project in your account | |
| from_observation_id | No | Id of the get_context observation this record writes up. Marks it handled so it leaves the briefing; write the body yourself. |