write
Save content to a file, creating any missing directories, and track file hash for edit consistency.
Instructions
Write content to file_path, overwriting any existing content.
Parent directories are created if missing. The file's new content
hash is recorded so a follow-up edit will require a fresh read.
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": {
"filePath": "<filePath>",
"content": "<content>"
},
"name": "write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| filePath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |