file_write
Write text content to a file in the workspace, creating parent directories automatically.
Instructions
Write content to a file in the workspace, creating any intermediate directories if needed.
Access is strictly confined to the workspace root.
Args:
path: Relative path where the file should be written.
content: The text content to write.
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": "file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |