file_write
Create or replace a UTF-8 file inside a registered workspace, rejecting sensitive paths and symlink targets to prevent unauthorized modifications.
Instructions
Create or replace one UTF-8 file inside a registered workspace. Sensitive paths and symlink targets are rejected.
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": {
"projectId": "<projectId>",
"path": "<path>",
"content": "<content>"
},
"name": "file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| projectId | Yes |