Create file
create_fileCreate a new file under the root, with the given text content. Creates any missing parent directories. Fails if the file already exists unless overwrite is set to true.
Instructions
Create a new file under the root, with the given text content. Creates any missing parent directories. Fails if the file already exists unless overwrite is set to true.
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>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to root | |
| content | No | Text content for the new file | |
| overwrite | No | If true, replace the file if it already exists |