Append File
append_fileAppend text to the end of a file, creating it if missing and leaving existing content unchanged. Adds exactly the given text, so include a newline when needed.
Instructions
Append text to the end of a file, creating the file if it does not exist. The existing content is never changed or replaced. The text is appended exactly as given, with no newline added before or after it, so end it with a newline if the next append should start on a new line. Only works within allowed directories.
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": "append_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file to append to; it is created if it does not exist. Absolute, or relative to an allowed directory; it must resolve inside the allowed directories. | |
| content | Yes | Text to append, exactly as given. No newline is added: end it with \n if the next append should start on a new line. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |