repo_write_file
Writes or updates a file in the project workspace, creating missing parent directories so autonomous code changes land in the correct location.
Instructions
Safely writes or updates a file within the project workspace, ensuring parent directories exist.
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": {
"filePath": "<filePath>",
"content": "<content>"
},
"name": "repo_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Full content to write to the file | |
| filePath | Yes | Relative path to the file within the repository | |
| workspaceRoot | No | Optional custom workspace root directory |