list_pdfs
Locate PDF files in directories using glob patterns to filter by filename, returning file details for processing with PDF reading tools.
Instructions
Find PDF files in a directory. Use name_pattern for glob filtering (e.g., 'report'). Returns name, path, pages for each PDF. Use the returned 'path' directly with read_pdf.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_pdfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| working_directory | No | Working directory to search (relative or absolute path, default: current directory) | . |
| recursive | No | Whether to include subdirectories | |
| max_depth | No | Maximum recursion depth (default: 2) | |
| name_pattern | No | Glob pattern for filename filtering (e.g., '*report*', 'doc_202?.pdf') |