Find And Replace Text
find_and_replace_textFind and replace text in a PDF file. Specify old and new text, optionally target specific pages to edit PDF content.
Instructions
Find and replace text in a PDF via PDF4me /api/v2/FindAndReplace. Inputs: pdf_file_path, old_text, new_text, page_sequence; optional output path.
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": {
"pdf_file_path": "<pdf_file_path>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "find_and_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_text | Yes | ||
| old_text | Yes | ||
| output_dir | No | ||
| page_sequence | No | 1 | |
| pdf_file_path | Yes | ||
| output_file_name | No | ||
| request_doc_name | No |