Initialize the config git repository
git_init_configInitializes a Git repository in the Home Assistant config directory, creating a default .gitignore and initial commit so other git tools can be used safely.
Instructions
Initialize a git repository in the HA config directory.
Creates a git repo at HA_CONFIG_PATH via git.Repo.init unless a .git/
directory already exists there, writes a default .gitignore
(secrets.yaml, .storage/, .db, home-assistant.log) when none exists,
and makes one initial commit adding that .gitignore.
Use when: preparing /config before using any other git_* tool or
git_safe_write_with_checkpoint for the first time.
Returns: dict {"status": "initialized"|"already_initialized", "path": ...}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_init_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||