write-to-file
Create, write, or update files directly in a remote MileHost container to deploy bot code and configuration files without writing local scripts.
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) |