find_and_replace
Replace all occurrences of a search term in a LibreOffice document with new text, optionally using regular expressions for advanced matching.
Instructions
Replace all occurrences of search with replace. Returns {count}.
Set regex=true to treat search as a regular expression.
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": {
"doc_id": "<doc_id>",
"search": "<search>",
"replace": "<replace>"
},
"name": "find_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | ||
| doc_id | Yes | ||
| search | Yes | ||
| replace | Yes |