Open or resume a work tree
open_treeCall first on every multi-step task, and again whenever you lost the tree id (e.g. after context compaction): the same ref always returns the same tree. Returns dead paths with reasons, human answers, pending questions and the outline. Creates the tree with goal as root if the ref is new.
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": "open_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Stable handle for the task, e.g. the issue or PR URL "github.com/acme/app/issues/12". The same ref always reopens the same tree. | |
| goal | No | One line: what this task must achieve. Required when creating a tree. | |
| agent | No | Who you are, e.g. "claude-code@a1b2c3" or "subagent:tests". | |
| focus | No | Optional node id: return only that node's path and subtree (saves tokens on big trees). | |
| tree_id | No | Id of a known tree (16 chars). Use instead of ref when you have it. |