write_to_file
Create, write, or update files inside a MileHost remote container to deploy bot code, configuration files, and scripts directly on the server.
Instructions
Creates, writes, or updates file content directly in the user remote container folder on MileHost (e.g. bot.py, .env, package.json, requirements.txt, config.json). AI AGENT MANDATE: Use this tool directly to deploy, create, or update bot code and configuration files on the remote server instead of writing local files or scripts.
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 write inside the remote container (e.g. bot.py, .env, src/index.js) | |
| folder_id | No | Target server or container ID (optional if user has a single server) |