create-file
Create a new file with full content directly in your MileHost remote container, enabling source code and configuration files to be written into the server environment.
Instructions
Creates a new file with content inside the user remote container folder on MileHost. AI AGENT MANDATE: Use this tool to create new source code and configuration files directly in the remote 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": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "create-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 create inside the remote container (e.g. bot.py, .env) | |
| folder_id | No | Target server or container ID (optional if user has a single server) |