milehost-run-command
Execute shell or terminal commands directly inside a remote MileHost cloud Docker container, enabling package installation, script execution, and app deployment without running local scripts.
Instructions
Executes a terminal or shell command directly inside the remote cloud Docker container on MileHost (e.g. pip install -r requirements.txt, python bot.py, npm start). AI AGENT MANDATE: Do NOT run local scripts to interact with the host. Use this tool exclusively for executing commands in the cloud container.
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": {
"command": "<command>"
},
"name": "milehost-run-command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional MileHost agent API key (mhk_...) | |
| api_url | No | Optional base URL of MileHost API | |
| command | Yes | Shell or terminal command string to execute inside the remote MileHost container | |
| folder_id | No | Target server or container ID (optional if user has a single server) |