write_file_tool
Write or overwrite file content at a specified path with optional encoding, enabling AI tools to create and update files on the local filesystem through Pathgate.
Instructions
Write content to a file (creates or overwrites)
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": "write_file_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the file | |
| content | Yes | Content to write | |
| encoding | No | File encoding (default: utf-8) | utf-8 |