Save ESPHome config
esphome_save_configWrites full YAML content to an ESPHome configuration file, creating a new file. Requires enabled write permissions; follow with validation and upload.
Instructions
Write YAML to an ESPHome configuration file, whole: for a new file. To change part of an existing one, use esphome_edit_config. Requires HA_ALLOW_WRITE=true and HA_ALLOW_CONFIG_WRITE=true. Follow with esphome_validate to confirm it compiles, then esphome_upload to flash it.
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": {
"configuration": "<configuration>",
"yaml": "<yaml>"
},
"name": "esphome_save_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | Full YAML content to write. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. | |
| configuration | Yes | Configuration filename, e.g. 'living-room.yaml'. |