ファイルの書き込み
write_fileWrite text content to files in allowed directories, overwriting existing files or appending when append mode is enabled.
Instructions
許可フォルダ内のファイルにテキストを書き込みます。既存のファイルは上書きされます(append を True にすると末尾に追記します)。
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 書き込むファイルのパス | |
| append | No | Trueなら追記、Falseなら上書き | |
| content | Yes | 書き込む内容 | |
| encoding | No | 文字コード | utf-8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 書き込んだファイルの絶対パス | |
| appended | Yes | 追記した場合はTrue | |
| bytes_written | Yes | 書き込んだバイト数 |