code.write
Create or overwrite UTF-8 text files at relative paths in the workspace sandbox, with optional overwrite control for writing code or config.
Instructions
Create or overwrite a text file inside the workspace sandbox.
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": "code.write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative file path. | |
| content | Yes | UTF-8 text content. | |
| overwrite | No |