Execute
executeRuns a single opt-in shell command on the AgentTasker host with configurable working directory, environment variables, timeout, and output limits for controlled task automation.
Instructions
Run one opt-in shell command on the server host.
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": {
"task_type": "<task_type>",
"command": "<command>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Existing absolute directory on the execution host | |
| env | No | ||
| name | No | ||
| command | Yes | Bash on the MCP server host; no retries; requires --allow-shell | |
| timeout | No | ||
| task_type | Yes | ||
| depends_on | No | ||
| output_mode | No | compact | |
| max_output_bytes | No | Retained tail bytes per stream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| error | No | ||
| status | No | ||
| results | No | ||
| batch_id | No |