find_and_replace
Replace occurrences of a search term with a new term in a LibreOffice document. Returns the number of replacements made.
Instructions
Replace all occurrences of search with replace in a document. Returns the count replaced.
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 |