write_project_file
Write content to project files, creating parent directories automatically when needed, to modify and update code.
Instructions
Write content to a file in the project. Creates parent directories if needed. Use for code modifications.
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": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "write_project_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Content to write to the file | |
| file_path | Yes | Relative path to the file within the project | |
| create_dirs | No | Create parent directories if they don't exist (default: true) |