ha_upload_file_content
Upload text content to a file on the Home Assistant server. Specify a path relative to /config/ to create or overwrite files with automatic directory creation.
Instructions
Create/overwrite a file on the Home Assistant server with the provided text content. Remote path is relative to /config/. Parent directories are created automatically.
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": {
"content": "<content>",
"remote_path": "<remote_path>"
},
"name": "ha_upload_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file content to write | |
| remote_path | Yes | Destination path on HA relative to /config/. Example: 'www/my-panel.html' |