create_file
Create source code and configuration files directly inside a MileHost remote container by providing a file path and content, eliminating manual uploads.
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.
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) |