milehost_exec_command
Execute shell commands inside a remote MileHost cloud container to manage servers, edit files, and deploy projects directly from your coding agent.
Instructions
Executes a terminal or shell command directly inside the remote cloud Docker container on MileHost. AI AGENT MANDATE: Use this tool to run commands directly inside 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_exec_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) |