hostodo_start_vm_command
Start a long-running shell command on a Hostodo VPS and receive a command ID for async polling. Ideal for builds, package installs, migrations, or service restarts.
Instructions
Start a long-running async command on one owned VPS. Returns immediately with a command_id for polling via hostodo_get_vm_command_output. Use for builds, package installs, migrations, service restarts, etc. Requires vms:exec scope and mcp_exec_enabled=true on the VM.
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": {
"vm_id": "<vm_id>",
"command": "<command>"
},
"name": "hostodo_start_vm_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional human-readable label (e.g., 'build app image'). | |
| vm_id | Yes | Hostodo instance id, hostname, or unique prefix. | |
| command | Yes | Shell command to execute (e.g., 'docker compose build'). | |
| timeout_seconds | No | Max runtime in seconds (default 1800, max 7200). | |
| working_directory | No | Optional absolute path to run command from. |