use_harness
Execute a prompt in a headless CLI host to delegate tasks to local agents like Claude, Codex, or opencode, using their configured skills and MCP tools.
Instructions
Run a prompt in a headless host CLI (claude -p, codex exec, opencode run, ...). Lets the DeepSeek model drive local agents, skills, plugins, and MCP tools configured on that host. Host must be in HARNESS_ALLOW_HOSTS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host": "<host>",
"prompt": "<prompt>"
},
"name": "use_harness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the harness (default: server cwd) | |
| host | Yes | Harness to drive (claude | codex | opencode, or other configured) | |
| prompt | Yes | Task for the harness session | |
| timeout_ms | No | Kill the harness after this many ms (default: 120000) |