kernel_agents_workspace_apply
Declares and prepares an office's home folder contents: clones git repos, seeds files, and installs MCP servers and skills for Claude Code agents. Replaces the previous spec.
Instructions
Declare what an office's home folder must contain and prepare it now: git repos to clone (at a branch), files to seed, MCP servers and skills for every claude_code agent working in the home. Replaces the previous spec. Existing checkouts are never re-cloned or reset; seeded files only replace an existing one when overwrite is true. Runs of the office wait for the home to be ready and fail with the reason when it can't be prepared.
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": {
"flow_id": "<flow_id>",
"spec": "<spec>"
},
"name": "kernel_agents_workspace_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | WorkspaceSpec object or JSON: { "git": [{ "repo", "branch"?, "path"?, "depth"? }], "files": [{ "path", "content", "overwrite"? }], "mcp_servers": { name: config }, "skills": [slug] } | |
| flow_id | Yes | Office (flow) ID |