Get project context (call this first)
get_contextLoad a session-start briefing of relevant notes, decisions, dead ends, open tasks, and handoffs by passing the working directory and a focus; omit focus to retrieve the full project context.
Instructions
The session-start briefing. Call it first, with cwd and a focus: it answers with what matches -- notes whole, related dead ends, work in progress, anything queued for you -- as text under 8,000 characters, and counts the rest. With no focus, one that matches nothing, or shape:'full', it answers with everything instead, as JSON: standing rules, decisions, dead ends, open questions, open tasks with their linked files and the last handoff. That one is capped: fifty open tasks, three entries per kind per task (one handoff), and a byte budget on every body -- notes, task bodies and log entries -- smaller with a focus. Nothing is truncated: every record keeps its id and head (first line), and a body of null means the budget was already spent, never that the record is empty -- get_task and get_context_note read the rest. open_tasks_omitted/log_omitted count records NOT here; context_omitted/task_bodies_omitted/log_bodies_omitted count records here without a body. focus (one sentence on what this session is for, in both the developer's language and English) spends the budget on what is relevant instead of what is newest; context_ranked_by/log_ranked_by say which you got. Open tasks untouched for 14+ days come back head-only in idle_tasks -- title, status, days idle, last handoff head -- and cost no budget. The whole stays under about 40,000 characters: past that, the live tasks least worth reading come back as a line each in condensed_tasks, in that order, and get_task has the rest (files_omitted counts linked files a line had no room for). summary_missing: true means nobody has said what this repository is: update_project with one or two sentences once you know. A list with nothing in it is left out rather than sent empty. shape:'digest' answers with a plain-text index under max_chars instead -- headlines and ids only, for when the full briefing is too large to read or was saved to a file instead of shown.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory, used if project is omitted | |
| focus | No | What this session is about, in a sentence, written in English AND in the developer's other language if they have one ('add a profile name column / profil adı kolonu ekle'): it is matched word by word and the log may be in either. Keep identifiers as they are. The note and log budgets are spent on what matches it instead of what is newest; it can only move a record up, never drop one. | |
| model | No | Your model id, e.g. 'claude-opus-5'. | |
| shape | No | 'digest' returns the briefing as an indexed text under max_chars (default 9500): rules, live tasks with their last handoff, open questions, dead ends and decisions by headline only. 'opening' is what the tool sends by default: what matches `focus`, as text under 8,000 characters, or the full briefing when nothing does. 'full' is everything, as JSON. | |
| project | No | Project slug, name, or any absolute path inside the project | |
| max_chars | No | Ceiling for shape:'digest', in characters. Ignored for 'full'. | |
| create_if_missing | No | Register a project if the path matches none. Defaults to true for an absolute path; needs `repo_root` or `repo_url` as well. |