worktree_env
Resolve shared build-cache environment variables for the current Git worktree, returning shell or JSON output for installs and builds.
Instructions
Resolve shared-cache environment variables for the current git worktree (cache dirs + hit-enabling flags). Use before running installs/builds in a worktree.
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": "worktree_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Return the raw variable map as JSON instead of shell syntax | |
| shell | No | Shell syntax for the env text (default sh) | |
| providers | No | Restrict to these build-cache providers (default: all detected) | |
| timeout_ms | No | Environment probe time budget in milliseconds (default 10000, max 30000) | |
| workspace_path | No | Absolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace. |