Skip to content

Commit 1146c54

Browse files
ochafikclaude
andcommitted
pdf-server: add get_pages tool for batch text/screenshot extraction
New tool `get_pages` lets the model get text and/or screenshots from arbitrary page ranges without navigating the visible viewer. - Server: `get_pages` tool with interval-based page ranges (optional start/end, open ranges supported), `getText`/`getScreenshots` flags, request-response bridge via `submit_page_data` app-only tool - Client: offscreen rendering (hidden canvas, no visual interference), text from cache or on-demand extraction, screenshots scaled to 768px max dimension, results submitted back to server - Max 20 pages per request, 60s timeout Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4039e05 commit 1146c54

20 files changed

Lines changed: 320 additions & 0 deletions

File tree

53 Bytes
Loading
246 Bytes
Loading
48 Bytes
Loading
924 Bytes
Loading
112 Bytes
Loading
150 Bytes
Loading

examples/map-server/grid-cell.png

14 Bytes
Loading

examples/map-server/screenshot.png

57 Bytes
Loading

examples/pdf-server/grid-cell.png

-4.54 KB
Loading

examples/pdf-server/screenshot.png

19 KB
Loading

0 commit comments

Comments
 (0)