split_pdf_by_text
Split a PDF into separate files at each occurrence of a specified text, with page breaks placed before or after the match.
Instructions
Split a PDF by matching text via PDF4me SplitByText (/api/v2/SplitByText). Provide pdf_file_path, text, split_text_page (before/after), and file_naming.
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>",
"text": "<text>"
},
"name": "split_pdf_by_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| output_dir | No | ||
| file_naming | No | NameAsPerOrder | |
| pdf_file_path | Yes | ||
| split_text_page | No | after | |
| request_doc_name | No |