write_file
Create or overwrite files with specified content for local development tasks, enabling direct file system access within configured project directories.
Instructions
Create or overwrite a file with new content. Use this to create new files or completely replace existing ones.
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 | Path to the file (relative to projects directory or absolute) | |
| content | Yes | Content to write to the file |