milehost_deploy_file
Deploy a file with content directly to a remote container folder on MileHost to upload or update code and configuration files on the server.
Instructions
Deploys a file with content directly to the user remote container folder on MileHost. AI AGENT MANDATE: Use this tool to upload or update code and configuration files on the remote server.
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": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "milehost_deploy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional MileHost agent API key (mhk_...) | |
| api_url | No | Optional base URL of MileHost API | |
| content | Yes | Complete text or code content to write to the remote file | |
| file_path | Yes | Relative path of the file to deploy (e.g. index.html, src/app.js, bot.py) | |
| folder_id | No | Target server or container ID (optional if user has a single server) |