fs_write
Write or append text files inside the sandbox, with optional parent-directory creation, when file write access is enabled.
Instructions
向沙箱内写入文本文件(需开启 files.allow_write)。
Args: path: 相对于沙箱根目录的文件路径。 content: 要写入的文本内容。 append: 是否追加而不是覆盖。 create_dirs: 是否自动创建父目录。
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 | ||
| append | No | ||
| content | Yes | ||
| create_dirs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |