fs_write
Write UTF-8 text to a new file or append to an existing one, with an error on conflict to prevent data loss.
Instructions
Write UTF-8 bytes to a file.
Args:
path: Destination file.
content: The text to write.
if_exists: One of "error" (default — refuse), "append"
(add to end). Overwriting an existing file is a T2 op
— use fs_overwrite.
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": "fs_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| if_exists | No | error |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||