write_file
Write text content to a file path in the workspace, auto-creating missing directories and overwriting any existing file content.
Instructions
把文本内容写入 workspace 内的文件;文件或上级目录不存在则自动创建。
Args: path: 相对于 workspace 的文件路径。 content: 要写入的文本,会整体覆盖已有内容。
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 | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |