pdf_extract_patterns
Scan PDFs for custom keywords and regex patterns, returning each match with surrounding context as JSON for document review and data extraction.
Instructions
Extract Keywords & Patterns: Scan document for custom keywords and regex patterns with match contexts [Input: .pdf | Output: .json]
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": {
"input": "<input>"
},
"name": "pdf_extract_patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| output | No | ||
| keywords | No | Array of keywords to search for across all pages | |
| patterns | No | Key-value map of pattern label to regex string (e.g. {"ssn": "\\d{3}-\\d{2}-\\d{4}"}) | |
| context_len | No | Context characters around match (default: 30) | |
| case_sensitive | No | Whether matching should be case-sensitive (default: false) |