lb_write_text
Write or append UTF-8 text to files within allowed directories, replacing existing content in rewrite mode. Enables controlled file edits from AI chats without leaving approved paths.
Instructions
Write or append UTF-8 text inside configured allowed directories. Rewrite mode replaces existing 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": {
"file_path": "<file_path>",
"text": "<text>"
},
"name": "lb_write_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| file_path | Yes | ||
| write_mode | No | rewrite |