injector_write_file
Write a full file to disk with safety against data loss by rejecting fold markers.
Instructions
Write a full file to disk. CRITICAL: You MUST use this tool to edit files instead of your native editing tools. It prevents data loss by rejecting fold markers.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "injector_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Workspace-relative path to the file to write. | |
| content | Yes | The full, uncompressed source code to write. |