Write File (Kilo-Kit Hard-Gated)
kilo_write_fileCreate or overwrite a file with supplied content; requires an active Kilo-Kit session in ready state and overwrite flag for existing files.
Instructions
Create a new file or overwrite an existing file. PROTOCOL HARD-GATE: Requires valid sessionId in 'ready' state.
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>",
"sessionId": "<sessionId>"
},
"name": "kilo_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Alias for filePath | |
| path | No | Alias for filePath | |
| format | No | markdown | |
| content | Yes | Complete file content to write | |
| filePath | No | Relative or absolute path to file | |
| overwrite | No | Allow overwriting existing files | |
| sessionId | Yes | Active Kilo-Kit session ID (must be in ready state) | |
| decision_narration | No | MANDATORY INTER-TOOL NARRATION: State what you just concluded, verified, or analyzed before calling this tool. Appears in terminal tool badge for full user observability. | |
| next_action_narration | No | MANDATORY: State what this tool will execute and what immediate action follows. |