write_file
Create or overwrite files in a shared project by specifying relative path and content, with option to auto-create parent directories.
Instructions
Create or overwrite a file in the shared project.
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": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative file path from project root | |
| content | Yes | Full file content to write | |
| create_dirs | No | Create parent directories if they do not exist |