Write file
file_writeCreate or overwrite a UTF-8 text file inside allowed roots without deleting existing files. Use it to save or replace text content in permitted local-pc-mcp directories.
Instructions
Create or overwrite a UTF-8 text file inside ALLOWED_ROOTS. Does not delete files.
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": "file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes_written | Yes |