Skip to Content
ReferenceToolstask_start

task_start

Start a command in a terminal on the machine. It keeps running when the call (or the conversation) ends; read it with task_output, end it with task_stop. For a one-shot command whose exit code you need, use exec_run.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
argvstring[]noProgram and arguments, run directly without a shell. Give this or command.
colsintegernoTerminal width (default 120).
commandstringnoA shell command line, run as /bin/sh -c <command> in the terminal. Give this or argv.
cwdstringnoWorking folder. Default: the machine program’s folder.
rowsintegernoTerminal height (default 40).

Result

NameTypeRequiredMeaning
pidintegeryes
taskintegeryesThe task’s id: pass it to task_output and task_stop.

Examples

{ "name": "task_start", "arguments": { "machine": "<machine>" } }

Limits

The call times out after 10 s (timed_out). Available since version 0.0.1. A refused or failed call returns one of the error codes.