write_file
Write files to the workspace and automatically create parent directories, ensuring valid file paths without manual setup.
Instructions
写文件到工作区(自动创建父目录)。
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 | 文件内容 |