Skip to main content
The human-readable catalog of workspace facade tools available through workspace.call.
This page is generated from packages/workspace/TOOLS.md. Edit the source Markdown, then run bun run --cwd packages/consuelo-docs generate-os-source-docs to refresh the public docs.

What this file controls

FieldValue
Source filepackages/workspace/TOOLS.md
Runtime roleTool contracts, call shapes, examples, envelopes, categories, and operational affordances.
ControlsWhich tool names exist, how they are called, and what each tool returns.
Generated route/os/agent-context/tools

Source document

workspace typed tools

This file is the human-readable tool catalog for the workspace facade. It is generated from packages/workspace/tooling/tool-manifest.json, so tool additions, schema changes, and timeout changes update this reference through the generator. The workspace app exposes exactly two MCP entrypoints:
  • workspace.get_steering() for bootstrap context
  • workspace.call(\{ tool, input, taskSession, timeout \}) for every typed operation
{Note} Use this file as a contract map. The manifest remains the executable source of truth; this page makes the available tools easier to scan. </Note>

Call contract

Every operation travels through the same envelope:
await workspace.call({
  tool: "fs.read",
  input: { path: "packages/workspace/package.json" },
  timeout: 120,
})
Task-scoped work must pass the taskSession returned by task.start. The facade resolves the session to the correct branch and worktree before invoking the underlying script.

Tool index

CategoryTools
codemode1
composed2
consuelo design21
context7
decision engine6
filesystem6
generation2
git1
github2
http1
linear8
mac8
review4
sentry7
stream3
task lifecycle13
tooling1
utilities34
worker1

Tools by category

codemode

workspace.code.run

run workspace-native codemode JavaScript against allowed workspace tools
FieldValue
Categorycodemode
Signature`workspace.code.run({ code: string; mode?: “read""edit""verify”; timeout?: number; memoryLimit?: number; maxOperations?: number; maxResultChars?: number; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace code.run
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "code.run",
  "input": {
    "code": "return await workspace_call(\"status\", {})",
    "maxOperations": 25,
    "maxResultChars": 20000
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

composed

workspace.checkFiles

run syntax checks over a set of files through task:exec
FieldValue
Categorycomposed
Signature`workspace.checkFiles({ branch?: string; files: string[]; stopOnFirstError?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace checkFiles
Capabilityread-only · non-mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "checkFiles",
  "input": {
    "branch": "task/workspace-agents/example",
    "files": [
      "packages/workspace/scripts/fs.js"
    ],
    "stopOnFirstError": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.editFlow

run a search-read-patch-verify flow as a composed script
FieldValue
Categorycomposed
Signature`workspace.editFlow({ branch?: string; searchPattern: string; searchPaths: string[]; from: number; to: number; contentFile: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace editFlow
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "editFlow",
  "input": {
    "branch": "task/workspace-agents/example",
    "searchPattern": "oldFn",
    "searchPaths": [
      "packages/workspace/scripts"
    ],
    "from": 1,
    "to": 1,
    "contentFile": "/tmp/new.ts",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

consuelo design

workspace.consueloDesign.check

run consuelo-design package boundary and Railway checks
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.check({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design check
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.check",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.generateDemo

create a headless Open Design work order for a demo artifact; pass live=true only for a headed UI session
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.generateDemo({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design generate-demo
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.generateDemo",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.generateDigitalEguide

create a headless Open Design work order for a digital e-guide artifact, optionally using a named Consuelo e-guide template
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.generateDigitalEguide({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; template?: “research""spec""plan”; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design generate-digital-eguide
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.generateDigitalEguide",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.generateEmail

create a headless Open Design work order for a email artifact; pass live=true only for a headed UI session
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.generateEmail({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design generate-email
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.generateEmail",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.generateImageBrief

create a headless Open Design work order for a image/media artifact; pass live=true only for a headed UI session
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.generateImageBrief({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design generate-image-brief
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.generateImageBrief",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.generateMotionFrame

create a headless Open Design work order for a motion-frame artifact; pass live=true only for a headed UI session
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.generateMotionFrame({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design generate-motion-frame
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.generateMotionFrame",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.generateWebsite

create a headless Open Design work order for a website artifact; pass live=true only for a headed UI session
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.generateWebsite({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design generate-website
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.generateWebsite",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.getDesignSystem

return base Consuelo DESIGN.md and consuelo-design AGENTS.md only
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.getDesignSystem({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design get-design-system
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.getDesignSystem",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.listDesignSystems

list Consuelo default design system and upstream reference systems
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.listDesignSystems({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design list-design-systems
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.listDesignSystems",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.listSkills

list upstream Open Design skills and Consuelo workflow mappings
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.listSkills({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design list-skills
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.listSkills",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.odBuild

build the vendored Open Design daemon CLI through the Bun facade
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.odBuild({ requestId?: string; taskSession?: string; dryRun?: boolean; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design od:build
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "consueloDesign.odBuild",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.railwayCheck

verify consuelo-design is excluded from Railway deploy paths
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.railwayCheck({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design railway:check
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.railwayCheck",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.renderHyperframes

create a headless Open Design work order for a HyperFrames render artifact; pass live=true only for a headed UI session
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.renderHyperframes({ requestId?: string; taskSession?: string; dryRun?: boolean; live?: boolean; name?: string; prompt?: string; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design render-hyperframes
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.renderHyperframes",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.run

start Open Design daemon and web UI in the foreground through the Bun facade
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.run({ requestId?: string; taskSession?: string; dryRun?: boolean; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design run
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "consueloDesign.run",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.uiBg

start Open Design managed runtimes in the background through the Bun facade
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.uiBg({ requestId?: string; taskSession?: string; dryRun?: boolean; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design ui:bg
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "consueloDesign.uiBg",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.uiLogs

show Open Design managed runtime logs through the Bun facade
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.uiLogs({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design ui:logs
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.uiLogs",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.uiStatus

show Open Design managed runtime status through the Bun facade
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.uiStatus({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design ui:status
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.uiStatus",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.uiStop

stop Open Design managed runtimes through the Bun facade
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.uiStop({ requestId?: string; taskSession?: string; dryRun?: boolean; timeout?: number }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design ui:stop
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "consueloDesign.uiStop",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.consueloDesign.upstreamStatus

show vendored Open Design metadata and runtime requirements
FieldValue
Categoryconsuelo design
Signature`workspace.consueloDesign.upstreamStatus({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design upstream-status
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "consueloDesign.upstreamStatus",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.design.publish

publish a design artifact through private Tailscale Serve and update the design wiki archive
FieldValue
Categoryconsuelo design
Signature`workspace.design.publish({ target?: string; portlessName?: string; path?: string; name?: string; category?: string; template?: “research""spec""plan”; tailscaleBin?: string; requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design publish
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "design.publish",
  "input": {
    "portlessName": "design.localhost",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.design.refresh

regenerate and publish the existing Consuelo Wiki archive without adding an artifact
FieldValue
Categoryconsuelo design
Signature`workspace.design.refresh({ tailscaleBin?: string; requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace consuelo-design refresh
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "design.refresh",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

context

workspace.context.categories

list project memory categories
FieldValue
Categorycontext
Signature`workspace.context.categories({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.categories
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.categories",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.context.find

search project memory by title
FieldValue
Categorycontext
Signature`workspace.context.find({ keyword: string; limit?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.find
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.find",
  "input": {
    "keyword": "handoff",
    "limit": 3
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.context.get

read a full project memory search result
FieldValue
Categorycontext
Signature`workspace.context.get({ index: number; keyword: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.get
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.get",
  "input": {
    "index": 1,
    "keyword": "workspace"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.context.list

list recent project memories
FieldValue
Categorycontext
Signature`workspace.context.list({ category?: string; limit?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.list
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.list",
  "input": {
    "category": "workpad",
    "limit": 3
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.context.save

save a file or text into project memory
FieldValue
Categorycontext
Signature`workspace.context.save({ title: string; file?: string; content?: string; category?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.save
Capabilitywrites state · mutating · single-shot
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.save",
  "input": {
    "title": "example memory",
    "file": "/tmp/example.md",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}
search project memory by content
FieldValue
Categorycontext
Signature`workspace.context.search({ keyword: string; limit?: number; category?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.search
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.search",
  "input": {
    "keyword": "workspace",
    "limit": 3
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.context.trace

query local workspace tool traces from the repo-scoped SQLite trace store
FieldValue
Categorycontext
Signature`workspace.context.trace({ traceId?: string; tool?: string; status?: “all""ok""error""blocked""timeout”; since?: string; until?: string; contains?: string; taskSession?: string; branch?: string; limit?: number; raw?: boolean; db?: string; requestId?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace context.trace
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "context.trace",
  "input": {
    "status": "error",
    "limit": 20
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

decision engine

workspace.audit

audit workspace scripts, docs, or index freshness
FieldValue
Categorydecision engine
Signature`workspace.audit({ scripts?: boolean; docs?: boolean; index?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace audit
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "audit",
  "input": {
    "scripts": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.confidenceScore

score confidence from evidence state
FieldValue
Categorydecision engine
Signature`workspace.confidenceScore({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace confidenceScore
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "confidenceScore",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.confirm

run verification or targeted validation through confirm
FieldValue
Categorydecision engine
Signature`workspace.confirm({ verify?: boolean; runtime?: boolean; test?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace confirm
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "confirm",
  "input": {
    "verify": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.decideNext

recommend the next action from evidence state
FieldValue
Categorydecision engine
Signature`workspace.decideNext({ context?: string; markRead?: string; markRelevant?: string; markIrrelevant?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace decideNext
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "decideNext",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.exploit

select the highest-confidence editing target
FieldValue
Categorydecision engine
Signature`workspace.exploit({ query?: string; target?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace exploit
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "exploit",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.explore

run repository exploration retrieval
FieldValue
Categorydecision engine
Signature`workspace.explore({ query: string; limit?: number; changedOnly?: boolean; reindex?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace explore
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "explore",
  "input": {
    "query": "workspace facade",
    "limit": 5
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

filesystem

workspace.fs.list

list or find files in the repo root or a resolved task worktree
FieldValue
Categoryfilesystem
Signature`workspace.fs.list({ path?: string; pattern?: string; depth?: number; tree?: boolean; dirs?: boolean; files?: boolean; branch?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace fs list, or task:fs list when a branch is resolved
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "fs.list",
  "input": {
    "branch": "task/workspace-agents/example",
    "path": "packages/workspace/scripts",
    "depth": 1
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.fs.patch

replace a line range in a task worktree file
FieldValue
Categoryfilesystem
Signature`workspace.fs.patch({ path: string; from: number; to: number; content?: string; contentFile?: string; branch?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace fs.patch
Capabilitywrites state · mutating · single-shot
Default timeout30000ms

Example call

await workspace.call({
  "tool": "fs.patch",
  "input": {
    "branch": "task/workspace-agents/example",
    "path": "tmp/example.txt",
    "from": 1,
    "to": 1,
    "dryRun": true,
    "contentFile": "/tmp/replacement.txt"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.fs.read

read file contents with an optional line range
FieldValue
Categoryfilesystem
Signatureworkspace.fs.read(\{ path: string; from?: number; to?: number; branch?: string; requestId?: string; taskSession?: string \}) =&gt; Promise&lt;ToolResult&lt;Array&lt;\{ path: string; from: number; to: number; total: number; lines: string[] \}&gt;&gt;&gt;
Runtimeworkspace fs read, or task:fs read when a branch is resolved
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "fs.read",
  "input": {
    "branch": "task/workspace-agents/example",
    "path": "packages/workspace/package.json"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}
search files with ripgrep through the workspace script
FieldValue
Categoryfilesystem
Signatureworkspace.fs.search(\{ pattern: string; paths?: string[]; include?: string; context?: number; maxResults?: number; branch?: string; requestId?: string; taskSession?: string \}) =&gt; Promise&lt;ToolResult&lt;Array&lt;\{ file: string; line: number; text: string \}&gt;&gt;&gt;
Runtimeworkspace fs search, or task:fs search when a branch is resolved
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "fs.search",
  "input": {
    "branch": "task/workspace-agents/example",
    "pattern": "task:fs",
    "paths": [
      "packages/workspace/SCRIPTS.md"
    ]
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.fs.trash

move a task worktree file to trash
FieldValue
Categoryfilesystem
Signature`workspace.fs.trash({ path: string; branch?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace fs.trash
Capabilitywrites state · mutating · single-shot
Default timeout30000ms

Example call

await workspace.call({
  "tool": "fs.trash",
  "input": {
    "branch": "task/workspace-agents/example",
    "path": "tmp/example.txt",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.fs.write

write a file in a task worktree
FieldValue
Categoryfilesystem
Signature`workspace.fs.write({ path: string; content?: string; contentFile?: string; force?: boolean; append?: boolean; mkdirs?: boolean; branch?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace fs.write
Capabilitywrites state · mutating · single-shot
Default timeout30000ms

Example call

await workspace.call({
  "tool": "fs.write",
  "input": {
    "branch": "task/workspace-agents/example",
    "path": "tmp/example.txt",
    "contentFile": "/tmp/example.txt",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

generation

workspace.generate.docs

generate TOOLS.md from the tool manifest
FieldValue
Categorygeneration
Signature`workspace.generate.docs({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace generate.docs
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "generate.docs",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.generate.types

generate workspace.d.ts from the tool manifest
FieldValue
Categorygeneration
Signature`workspace.generate.types({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace generate.types
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "generate.types",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

git

workspace.git.diff

inspect task or working-tree diffs as bounded structured JSON for agents
FieldValue
Categorygit
Signature`workspace.git.diff({ branch?: string; base?: string; head?: string; paths?: string[]; stat?: boolean; files?: boolean; hunks?: boolean; patch?: boolean; nameOnly?: boolean; context?: number; maxBytes?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace git:diff
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "git.diff",
  "input": {
    "branch": "task/workspace-agents/example",
    "base": "origin/main",
    "stat": true,
    "files": true,
    "hunks": true,
    "maxBytes": 20000
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

github

workspace.gh

run the workspace GitHub helper with an explicit action
FieldValue
Categorygithub
Signature`workspace.gh({ action: string; args?: string[]; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace gh
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "gh",
  "input": {
    "action": "view",
    "args": [
      "225"
    ]
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.github

typed GitHub facade with semantic operations and presets; prefer over raw gh
FieldValue
Categorygithub
Signature`workspace.github({ operation: “pr.view""pr.checks""pr.reviews""pr.files""pr.diff""pr.list""pr.merge""branch.compare""repo.view""raw”; repo?: string; pr?: number; branch?: string; base?: string; head?: string; preset?: “summary""review""merge""checks""files""full”; fields?: string[]; limit?: number; state?: “open""closed""merged""all”; body?: string; bodyFile?: string; wait?: boolean; squash?: boolean; full?: boolean; mergeMethod?: “merge""squash""rebase”; rawArgs?: string[]; args?: string[]; reason?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace github
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "github",
  "input": {
    "operation": "pr.view",
    "pr": 436,
    "preset": "review"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

http

workspace.http

make HTTP requests through the workspace http wrapper (wraps xh)
FieldValue
Categoryhttp
Signature`workspace.http({ url: string; method?: “get""post""put""patch""delete""head”; headers?: Record<string, string>; body?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace http
Capabilitywrites state · mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "http",
  "input": {
    "method": "get",
    "url": "https://example.com"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

linear

workspace.linear.createIssue

create a Linear issue with DEV/open defaults and the opensaas label
FieldValue
Categorylinear
Signature`workspace.linear.createIssue({ title: string; description?: string; team?: string; state?: string; labels?: string[]; priority?: number; assignee?: string; project?: string; cycle?: string; parent?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.createIssue
Capabilitywrites state · mutating · single-shot
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.createIssue",
  "input": {
    "title": "add Linear facade commands",
    "labels": [
      "opensaas"
    ]
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.linear.issue

read a Linear issue by identifier or id
FieldValue
Categorylinear
Signature`workspace.linear.issue({ identifier: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.issue
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.issue",
  "input": {
    "identifier": "DEV-123"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.linear.labels

list Linear issue labels for label consistency
FieldValue
Categorylinear
Signature`workspace.linear.labels({ first?: number; after?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.labels
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.labels",
  "input": {
    "first": 50
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.linear.projects

list Linear projects and ids
FieldValue
Categorylinear
Signature`workspace.linear.projects({ first?: number; after?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.projects
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.projects",
  "input": {
    "first": 50
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}
search Linear issues with DEV default team support
FieldValue
Categorylinear
Signature`workspace.linear.search({ search?: string; team?: string; first?: number; after?: string; filter?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.search
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.search",
  "input": {
    "search": "workspace facade"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.linear.states

list workflow states for a Linear team
FieldValue
Categorylinear
Signature`workspace.linear.states({ team?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.states
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.states",
  "input": {
    "team": "dev"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.linear.teams

list Linear teams and workflow states
FieldValue
Categorylinear
Signature`workspace.linear.teams({ first?: number; after?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.teams
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.teams",
  "input": {
    "first": 20
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.linear.updateIssue

update Linear issue fields including labels, project, cycle, and parent
FieldValue
Categorylinear
Signature`workspace.linear.updateIssue({ issueId: string; title?: string; description?: string; state?: string; labels?: string[]; priority?: number; assignee?: string; project?: string; cycle?: string; parent?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace linear.updateIssue
Capabilitywrites state · mutating · single-shot
Default timeout60000ms

Example call

await workspace.call({
  "tool": "linear.updateIssue",
  "input": {
    "issueId": "DEV-123",
    "labels": [
      "opensaas"
    ]
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

mac

workspace.mac.call

run a non-repo shell command on the Mac
FieldValue
Categorymac
Signature`workspace.mac.call({ command: string; cwd?: string; timeout?: number; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.call
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.call",
  "input": {
    "command": "pwd",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.mac.exec

legacy alias for mac.call; run a non-repo shell command on the Mac
FieldValue
Categorymac
Signature`workspace.mac.exec({ command: string; cwd?: string; timeout?: number; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.exec
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.exec",
  "input": {
    "command": "pwd",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.mac.list

list non-repo files on the Mac
FieldValue
Categorymac
Signature`workspace.mac.list({ path?: string; depth?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.list
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.list",
  "input": {
    "path": "/tmp",
    "depth": 1
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.mac.port

check or find a local port
FieldValue
Categorymac
Signature`workspace.mac.port({ action: “check""find”; port?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.port
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.port",
  "input": {
    "action": "find"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.mac.process

list or kill local Mac processes
FieldValue
Categorymac
Signature`workspace.mac.process({ action: “list""kill”; pid?: number; name?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.process
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.process",
  "input": {
    "action": "list"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.mac.read

read a non-repo file on the Mac
FieldValue
Categorymac
Signature`workspace.mac.read({ path: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.read
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.read",
  "input": {
    "path": "/tmp/example.txt"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}
search non-repo files on the Mac
FieldValue
Categorymac
Signature`workspace.mac.search({ pattern: string; path?: string; include?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.search
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.search",
  "input": {
    "pattern": "hello",
    "path": "/tmp"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.mac.write

write a non-repo file on the Mac
FieldValue
Categorymac
Signature`workspace.mac.write({ path: string; content?: string; contentFile?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace mac.write
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "mac.write",
  "input": {
    "path": "/tmp/example.txt",
    "content": "hello",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

review

workspace.aiReview

run the AI PR review helper
FieldValue
Categoryreview
Signature`workspace.aiReview({ pr?: number; noPost?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace aiReview
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "aiReview",
  "input": {
    "pr": 226,
    "noPost": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.prReview

fetch review comments for a PR
FieldValue
Categoryreview
Signature`workspace.prReview({ pr?: number; stdout?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace prReview
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "prReview",
  "input": {
    "pr": 225,
    "stdout": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.review.run

run the workspace review checks
FieldValue
Categoryreview
Signature`workspace.review.run({ branch?: string; fix?: boolean; all?: boolean; base?: string; strict?: boolean; mine?: boolean; noTests?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace review.run
Capabilityread-only · non-mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "review.run",
  "input": {
    "branch": "task/workspace-agents/example",
    "noTests": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.verify

run the full task safety gate
FieldValue
Categoryreview
Signature`workspace.verify({ branch?: string; base?: string; noStamp?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace verify
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "verify",
  "input": {
    "branch": "task/workspace-agents/example",
    "noStamp": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

sentry

workspace.sentry.config

show Sentry API configuration status from Keychain without exposing secrets
FieldValue
Categorysentry
Signature`workspace.sentry.config({ verify?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.config
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.config",
  "input": {
    "verify": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.sentry.event

retrieve or resolve a Sentry event id, using a project slug when available
FieldValue
Categorysentry
Signature`workspace.sentry.event({ eventId: string; project?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.event
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.event",
  "input": {
    "eventId": "0123456789abcdef0123456789abcdef"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.sentry.issue

retrieve one Sentry issue by short id or numeric issue id
FieldValue
Categorysentry
Signature`workspace.sentry.issue({ identifier: string; expand?: string[]; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.issue
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.issue",
  "input": {
    "identifier": "PROJECT-123"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.sentry.issueEvent

retrieve a latest, recommended, oldest, or concrete Sentry event for an issue
FieldValue
Categorysentry
Signature`workspace.sentry.issueEvent({ issueId: string; eventId?: string; full?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.issueEvent
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.issueEvent",
  "input": {
    "issueId": "PROJECT-123",
    "eventId": "recommended",
    "full": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.sentry.issues

search Sentry issues across the configured organization
FieldValue
Categorysentry
Signature`workspace.sentry.issues({ query?: string; project?: string; environment?: string[]; sort?: string; statsPeriod?: string; start?: string; end?: string; cursor?: string; limit?: number; expand?: string[]; collapse?: string[]; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.issues
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.issues",
  "input": {
    "query": "is:unresolved",
    "limit": 10
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.sentry.projects

list Sentry projects for the configured organization
FieldValue
Categorysentry
Signature`workspace.sentry.projects({ limit?: number; cursor?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.projects
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.projects",
  "input": {
    "limit": 25
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.sentry.trace

perform a best-effort Sentry trace lookup across organization events and issues
FieldValue
Categorysentry
Signature`workspace.sentry.trace({ traceId: string; project?: string; query?: string; statsPeriod?: string; dataset?: string; field?: string[]; cursor?: string; limit?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace sentry.trace
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "sentry.trace",
  "input": {
    "traceId": "0123456789abcdef0123456789abcdef",
    "limit": 10
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

stream

workspace.stream.context

show recent stream context
FieldValue
Categorystream
Signature`workspace.stream.context({ area: string; stream?: string; repo?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace stream.context
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "stream.context",
  "input": {
    "area": "workspace-agents"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.stream.list

list stream branches
FieldValue
Categorystream
Signature`workspace.stream.list({ repo?: string; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace stream.list
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "stream.list",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.stream.sync

sync a stream branch with main
FieldValue
Categorystream
Signature`workspace.stream.sync({ area: string; stream?: string; repo?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace stream.sync
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "stream.sync",
  "input": {
    "area": "workspace-agents",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

task lifecycle

workspace.task.call

run a command inside a task worktree
FieldValue
Categorytask lifecycle
Signature`workspace.task.call({ branch?: string; command: string[]; tddPhase?: “red""green""post”; timeout?: number; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.call
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "task.call",
  "input": {
    "branch": "task/workspace-agents/example",
    "command": [
      "git",
      "status",
      "--short"
    ],
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.cleanup

preview or remove stale task worktrees and branches
FieldValue
Categorytask lifecycle
Signature`workspace.task.cleanup({ branch?: string; force?: boolean; preview?: boolean; merged?: boolean; staleDays?: number; keep?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.cleanup
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "task.cleanup",
  "input": {
    "branch": "task/workspace-agents/example",
    "preview": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.current

resolve the current task branch without running a mutating command
FieldValue
Categorytask lifecycle
Signature`workspace.task.current({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ branch: string; area: string; prNumber?: number; worktree: string }null>>`
Runtimebranch resolver
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "task.current",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.ensureSynced

check whether the task stream appears synced
FieldValue
Categorytask lifecycle
Signatureworkspace.task.ensureSynced(\{ branch?: string; requestId?: string; taskSession?: string; dryRun?: boolean \}) =&gt; Promise&lt;ToolResult&lt;\{ synced: boolean; branch: string; area: string; behind?: number; action?: string \}&gt;&gt;
Runtimeworkspace task.ensureSynced
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "task.ensureSynced",
  "input": {
    "branch": "task/workspace-agents/example"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.exec

legacy alias for task.call; run a command inside a task worktree
FieldValue
Categorytask lifecycle
Signature`workspace.task.exec({ branch?: string; command: string[]; tddPhase?: “red""green""post”; timeout?: number; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.exec
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "task.exec",
  "input": {
    "branch": "task/workspace-agents/example",
    "command": [
      "git",
      "status",
      "--short"
    ],
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.finish

finish a task branch after merge
FieldValue
Categorytask lifecycle
Signature`workspace.task.finish({ branch?: string; requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.finish
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "task.finish",
  "input": {
    "branch": "task/workspace-agents/example",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.init

write task metadata for an existing worktree
FieldValue
Categorytask lifecycle
Signature`workspace.task.init({ area: string; branch: string; pr?: number; worktree?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.init
Capabilitywrites state · mutating · single-shot
Default timeout60000ms

Example call

await workspace.call({
  "tool": "task.init",
  "input": {
    "area": "workspace-agents",
    "branch": "task/workspace-agents/example",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.merge

merge a pull request through the workspace task merge script
FieldValue
Categorytask lifecycle
Signature`workspace.task.merge({ pr?: number; wait?: boolean; squash?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.merge
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "task.merge",
  "input": {
    "pr": 225,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.pr

merge task to stream and create or refresh the stream review PR
FieldValue
Categorytask lifecycle
Signature`workspace.task.pr({ branch?: string; taskOnly?: boolean; draft?: boolean; ready?: boolean; bodyTemplate?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.pr
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "task.pr",
  "input": {
    "branch": "task/workspace-agents/example",
    "taskOnly": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.prs

show task and review PR links
FieldValue
Categorytask lifecycle
Signature`workspace.task.prs({ branch?: string; requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.prs
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "task.prs",
  "input": {
    "branch": "task/workspace-agents/example"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.push

push changed task files to the task branch through GitHub API
FieldValue
Categorytask lifecycle
Signature`workspace.task.push({ branch?: string; message: string; changed?: boolean; files?: string[]; approved?: boolean; reason?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.push
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "task.push",
  "input": {
    "branch": "task/workspace-agents/example",
    "message": "feat(workspace): example",
    "changed": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.task.start

create a task branch, worktree, and draft PR
FieldValue
Categorytask lifecycle
Signature`workspace.task.start({ stream?: string; area?: string; title: string; description?: string; bodyFile?: string; startFrom?: “main""stream”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace task.start
Capabilitywrites state · mutating · single-shot
Default timeout60000ms

Example call

await workspace.call({
  "tool": "task.start",
  "input": {
    "stream": "stream/workspace-agents",
    "title": "example task",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.taskMeta.smoke

run the task metadata smoke suite
FieldValue
Categorytask lifecycle
Signature`workspace.taskMeta.smoke({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace taskMeta.smoke
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "taskMeta.smoke",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

tooling

search workspace tools by intent and return ranked usage guidance
FieldValue
Categorytooling
Signature`workspace.tools.search({ query: string; limit?: number; category?: string; readOnly?: boolean; mutating?: boolean; noDocs?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ query: string; limit: number; searchedCount: number; returnedCount: number; filters: Record<string, unknown>; totalMatches: number; confidence: “high""medium""low”; ambiguous: boolean; detectedIntent?: string; recommended?: string; matches: Array<{ name: string; methodPath?: string[]; category?: string; score: number; scoreParts?: Record<string, number>; description?: string; capabilities: Record<string, unknown>; sessionRequired: boolean; inputSchema?: string; outputSchema?: string; inputSignature?: string; outputSignature?: string; exampleInput?: Record<string, unknown>; usage: { workspaceCall: string; script?: string; subcommand?: string; arguments: Array<Record<string, unknown>> }; docs?: { heading: string; snippet: string; source: string }; why: string[] }>; alternatives?: Array<{ intent: string; tools: string[] }>; guidance: stringRecord<string, unknown>; catalog: { source: string[]; catalogHash: string; toolCount: number; searchedCount: number; cardVersion: string; embeddingConfigId: string; cardsEmbedded: number; cardsReused: number; embeddingError?: string } }>>`
Runtimeworkspace tools.search
Capabilityread-only · non-mutating · safe to retry
Default timeout30000ms

Example call

await workspace.call({
  "tool": "tools.search",
  "input": {
    "query": "linear issue",
    "limit": 5
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "query": "linear issue",
    "limit": 5,
    "searchedCount": 128,
    "returnedCount": 1,
    "filters": {},
    "totalMatches": 1,
    "confidence": "high",
    "ambiguous": false,
    "detectedIntent": "read or search Linear issues",
    "recommended": "linear.issue",
    "matches": [
      {
        "name": "linear.issue",
        "methodPath": [
          "linear",
          "issue"
        ],
        "category": "linear",
        "score": 142,
        "scoreParts": {
          "exact": 0,
          "name": 22,
          "lexical": 31,
          "bm25": 34,
          "intent": 55,
          "capability": 0,
          "embedding": 0
        },
        "description": "Read one Linear issue by identifier.",
        "capabilities": {
          "readOnly": true,
          "mutating": false,
          "safeToRetry": true
        },
        "sessionRequired": false,
        "inputSchema": "LinearIssueInput",
        "outputSchema": "RawOutput",
        "inputSignature": "{ identifier: string; requestId?: string; taskSession?: string }",
        "usage": {
          "workspaceCall": "await workspace.call({ tool: \"linear.issue\", input: { \"identifier\": \"DEV-123\" } })",
          "script": "linear",
          "subcommand": "issue",
          "arguments": []
        },
        "why": [
          "intent: read or search Linear issues"
        ]
      }
    ],
    "guidance": {
      "summary": "Use the recommended tool when its intent matches the user request. Inspect alternatives when ambiguous.",
      "recommendedUse": "Read-only recommendation is safe for investigation.",
      "ambiguous": false,
      "safeDefaults": [],
      "mutatingGuidance": []
    },
    "catalog": {
      "source": [
        "tool-manifest.json",
        "TOOLS.md"
      ],
      "catalogHash": "abc123",
      "toolCount": 128,
      "searchedCount": 128,
      "cardVersion": "tools-search-card-v2",
      "embeddingConfigId": "disabled",
      "cardsEmbedded": 0,
      "cardsReused": 0
    }
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

utilities

workspace.browser

run the generic workspace browser wrapper command
FieldValue
Categoryutilities
Signature`workspace.browser({ command?: string; url?: string; args?: string[]; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser",
  "input": {
    "command": "open",
    "url": "https://example.com",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.app

open app.consuelohq.com with the browser wrapper
FieldValue
Categoryutilities
Signature`workspace.browser.app({ headed?: boolean; full?: boolean; preset?: “desktop""mobile""tablet""ipad""iphone”; device?: string; provider?: string; width?: number; height?: number; colorScheme?: “dark""light""no-preference”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.app
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.app",
  "input": {
    "preset": "desktop",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.click

click a browser element by ref
FieldValue
Categoryutilities
Signature`workspace.browser.click({ ref: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.click
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.click",
  "input": {
    "ref": "@e1",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.clipboard

read from or write to the browser clipboard
FieldValue
Categoryutilities
Signature`workspace.browser.clipboard({ action: “read""write”; text?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.clipboard
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.clipboard",
  "input": {
    "action": "read",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.close

close active browser sessions
FieldValue
Categoryutilities
Signature`workspace.browser.close({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.close
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.close",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.consuelo

open consuelo.consuelohq.com with the browser wrapper
FieldValue
Categoryutilities
Signature`workspace.browser.consuelo({ headed?: boolean; full?: boolean; preset?: “desktop""mobile""tablet""ipad""iphone”; device?: string; provider?: string; width?: number; height?: number; colorScheme?: “dark""light""no-preference”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.consuelo
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.consuelo",
  "input": {
    "preset": "desktop",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.cookies

list, set, or clear browser cookies for the current browser session
FieldValue
Categoryutilities
Signature`workspace.browser.cookies({ action?: “list""set""clear”; name?: string; value?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.cookies
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.cookies",
  "input": {
    "action": "list",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.dialog

accept or dismiss browser dialogs
FieldValue
Categoryutilities
Signature`workspace.browser.dialog({ action: “accept""dismiss”; text?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.dialog
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.dialog",
  "input": {
    "action": "dismiss",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.download

click an element and save the triggered download to a path
FieldValue
Categoryutilities
Signature`workspace.browser.download({ ref: string; path: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.download
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.download",
  "input": {
    "ref": "@e1",
    "path": "/tmp/download.bin",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.eval

execute JavaScript on the current browser page
FieldValue
Categoryutilities
Signature`workspace.browser.eval({ js: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.eval
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.eval",
  "input": {
    "js": "document.title",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.fill

fill a browser input by ref
FieldValue
Categoryutilities
Signature`workspace.browser.fill({ ref: string; text: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.fill
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.fill",
  "input": {
    "ref": "@e1",
    "text": "hello",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.find

find an element by role, text, label, placeholder, alt text, title, or test id and run an action
FieldValue
Categoryutilities
Signature`workspace.browser.find({ by: “role""text""label""placeholder""alt""title""testid”; value: string; action: “click""fill""type""hover""focus""check""text”; text?: string; name?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.find
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.find",
  "input": {
    "by": "role",
    "value": "button",
    "action": "click",
    "name": "Submit",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.get

get text, html, value, attributes, title, or URL from the current page
FieldValue
Categoryutilities
Signature`workspace.browser.get({ target: “text""html""value""attribute""title""url”; selector?: string; attribute?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.get
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.get",
  "input": {
    "target": "title",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.login

run a saved browser auth login profile
FieldValue
Categoryutilities
Signature`workspace.browser.login({ name: string; headed?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.login
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.login",
  "input": {
    "name": "consuelo",
    "headed": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.network

inspect or manage browser network requests, routes, and HAR capture
FieldValue
Categoryutilities
Signature`workspace.browser.network({ args: string[]; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.network
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.network",
  "input": {
    "args": [
      "requests"
    ],
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.open

open a URL with the browser wrapper
FieldValue
Categoryutilities
Signature`workspace.browser.open({ url: string; headed?: boolean; full?: boolean; preset?: “desktop""mobile""tablet""ipad""iphone”; device?: string; provider?: string; width?: number; height?: number; colorScheme?: “dark""light""no-preference”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.open
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.open",
  "input": {
    "url": "https://example.com",
    "preset": "mobile",
    "full": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.raw

pass raw arguments through to agent-browser
FieldValue
Categoryutilities
Signature`workspace.browser.raw({ args: string[]; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.raw
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.raw",
  "input": {
    "args": [
      "auth",
      "list"
    ],
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.reauth

restart the browser daemon and run a saved auth login profile
FieldValue
Categoryutilities
Signature`workspace.browser.reauth({ name: string; headed?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.reauth
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.reauth",
  "input": {
    "name": "consuelo",
    "headed": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.screenshot

capture a browser screenshot
FieldValue
Categoryutilities
Signature`workspace.browser.screenshot({ name?: string; full?: boolean; preset?: “desktop""mobile""tablet""ipad""iphone”; device?: string; provider?: string; width?: number; height?: number; colorScheme?: “dark""light""no-preference”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.screenshot
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.screenshot",
  "input": {
    "name": "mobile-check",
    "preset": "mobile",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.snap

capture an accessibility snapshot
FieldValue
Categoryutilities
Signature`workspace.browser.snap({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.snap
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.snap",
  "input": {
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.tabs

list, create, select, or close browser tabs with stable labels when needed
FieldValue
Categoryutilities
Signature`workspace.browser.tabs({ action?: “list""new""select""switch""close”; target?: string; url?: string; label?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.tabs
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.tabs",
  "input": {
    "action": "list",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.test

open a URL, wait for load, snapshot, and screenshot
FieldValue
Categoryutilities
Signature`workspace.browser.test({ url: string; headed?: boolean; full?: boolean; preset?: “desktop""mobile""tablet""ipad""iphone”; device?: string; provider?: string; width?: number; height?: number; colorScheme?: “dark""light""no-preference”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.test
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.test",
  "input": {
    "url": "https://example.com",
    "preset": "mobile",
    "full": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.trace

start or stop browser tracing and optionally write a trace file
FieldValue
Categoryutilities
Signature`workspace.browser.trace({ action: “start""stop”; path?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.trace
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.trace",
  "input": {
    "action": "start",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.browser.wait

wait for a selector, duration, text, URL, load state, JavaScript condition, or download
FieldValue
Categoryutilities
Signature`workspace.browser.wait({ target?: string; text?: string; url?: string; load?: string; conditionScript?: string; download?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace browser.wait
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "browser.wait",
  "input": {
    "load": "networkidle",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.doctor

run workspace diagnostics
FieldValue
Categoryutilities
Signature`workspace.doctor({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace doctor
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "doctor",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.git.status

alias for status; use status directly in new code
FieldValue
Categoryutilities
Signature`workspace.git.status({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace status
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "git.status",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.railway.logs

read Railway deploy/runtime logs through the workspace script
FieldValue
Categoryutilities
Signature`workspace.railway.logs({ service?: string; build?: boolean; errors?: boolean; network?: boolean; raw?: boolean; status?: boolean; filter?: string; lines?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace railway.logs
Capabilityread-only · non-mutating · safe to retry
Default timeout60000ms

Example call

await workspace.call({
  "tool": "railway.logs",
  "input": {
    "service": "opensaas",
    "lines": 10
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.railway.redeploy

trigger a Railway redeploy
FieldValue
Categoryutilities
Signature`workspace.railway.redeploy({ service?: string; all?: boolean; wait?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace railway.redeploy
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "railway.redeploy",
  "input": {
    "service": "opensaas",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.research.ingest

generate a local research packet and autosave its text bundle to context
FieldValue
Categoryutilities
Signature`workspace.research.ingest({ source: string; question?: string; mode?: “quick""standard""deep”; visual?: boolean; slidesMax?: number; videoMode?: “auto""transcript""understand”; keep?: boolean; outDir?: string; summarizeBin?: string; contextTitle?: string; contextCategory?: string; noContextSave?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace research.ingest
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "research.ingest",
  "input": {
    "source": "https://example.com",
    "question": "What should I learn from this?",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.server

manage the workspace MCP server reload/status lifecycle
FieldValue
Categoryutilities
Signature`workspace.server({ action: “status""consuelo-reload""reload""restart""stop""start""logs”; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace server
Capabilitywrites state · mutating · single-shot
Default timeout120000ms

Example call

await workspace.call({
  "tool": "server",
  "input": {
    "action": "status"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.status

show compact workspace status
FieldValue
Categoryutilities
Signature`workspace.status({ requestId?: string; taskSession?: string; dryRun?: boolean }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace status
Capabilityread-only · non-mutating · safe to retry
Default timeout120000ms

Example call

await workspace.call({
  "tool": "status",
  "input": {}
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.tmp

run the workspace temp-file helper
FieldValue
Categoryutilities
Signature`workspace.tmp({ action: string; name?: string; content?: string; ext?: string; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace tmp
Capabilitywrites state · mutating · single-shot
Default timeout60000ms

Example call

await workspace.call({
  "tool": "tmp",
  "input": {
    "action": "write",
    "name": "example",
    "content": "hello",
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.wait

sleep or wait for a PR/deploy
FieldValue
Categoryutilities
Signature`workspace.wait({ seconds?: number; deploy?: boolean; pr?: number; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace wait
Capabilityread-only · non-mutating · safe to retry
Default timeout300000ms

Example call

await workspace.call({
  "tool": "wait",
  "input": {
    "seconds": 1
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

workspace.website.deploy

deploy the Consuelo website
FieldValue
Categoryutilities
Signature`workspace.website.deploy({ preview?: boolean; buildOnly?: boolean; dryRun?: boolean; requestId?: string; taskSession?: string }) => Promise<ToolResult<{ raw?: string; [key: string]: unknown }null>>`
Runtimeworkspace website.deploy
Capabilitywrites state · mutating · single-shot
Default timeout600000ms

Example call

await workspace.call({
  "tool": "website.deploy",
  "input": {
    "buildOnly": true,
    "dryRun": true
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

worker

workspace.worker.call

delegate a bounded instruction file to a configured local worker provider
FieldValue
Categoryworker
Signature`workspace.worker.call({ provider: “cdx""pi""opc""mini”; profile?: string; mode?: “check""step""work”; policy?: “read""safe""edit""ship”; instructionPath: string; cwd?: string; taskSession?: string; timeoutMs?: number; workspaceOnly?: boolean”preferred""strict”; approval?: Record<string, unknown>; requestId?: string }) => Promise<ToolResult<{ provider: “cdx""pi""opc”; requestedProvider?: “cdx""pi""opc""mini”; profile?: string; mode: “check""step""work”; policy: “read""safe""edit""ship”; status: “completed""failed""not_configured""not_supported""timed_out""approval_required”; cwd: string; instructionPath: string; command: string[]; stdout: string; stderr: string; exitCode: number; durationMs: number; audit: { taskSession?: string; branch?: string; workspaceOnly: “preferred""strict”false; rawShellUsed: boolean } }>>`
Runtimeworkspace worker.call
Capabilitywrites state · mutating · single-shot
Default timeout300000ms

Example call

await workspace.call({
  "tool": "worker.call",
  "input": {
    "provider": "cdx",
    "mode": "work",
    "policy": "edit",
    "instructionPath": ".task/workspace-agents/example/worker-instructions.md",
    "workspaceOnly": "preferred"
  }
});

Success envelope

{
  "ok": true,
  "code": "OK",
  "message": "command completed",
  "data": {
    "raw": "example"
  },
  "stderr": "",
  "exitCode": 0,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Error envelope

{
  "ok": false,
  "code": "VALIDATION_ERROR",
  "message": "input: Required",
  "data": {
    "issues": []
  },
  "stderr": "",
  "exitCode": 1,
  "durationMs": 12,
  "traceId": "trc_abc123def456",
  "apiVersion": "1.0.0"
}

Result envelope

Every result includes ok, code, message, data, stderr, exitCode, durationMs, traceId, and apiVersion. When callers pass a requestId, the facade echoes it so work can be correlated across logs and task evidence.

Error codes

OK, VALIDATION_ERROR, AMBIGUOUS_TASK_SELECTION, WORKTREE_NOT_FOUND, COMMAND_FAILED, TIMEOUT, PARSE_ERROR, NOT_FOUND, TASK_SESSION_REQUIRED, TASK_SESSION_NOT_FOUND, DRY_RUN.

Final rule

The tool manifest is executable contract. If this file and the manifest disagree, regenerate this file from the manifest and trust the manifest-backed generator.