Skip to content

feat: added get_pages tool as a replacement for get_page - #59

Merged
xscratt merged 3 commits into
developmentfrom
feat/get-pages-tool
Aug 18, 2026
Merged

feat: added get_pages tool as a replacement for get_page#59
xscratt merged 3 commits into
developmentfrom
feat/get-pages-tool

Conversation

@xscratt

@xscratt xscratt commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Description of changes

Added get_pages that supports returning multiple pages at once as a replacement of get_page tool.

Tool response has the following format:

{
  "content": [{
    "type": "text",
    "content": "[Document 1, Page 1]"
  }, {
    "type": "text",
    "content": "<aggregated text content of page 1>"
  }, {
    "type": "image",
    "imageType": "image/png",
    "data": "<base64-encoded page image of page 1>"
  }, {
    "type": "text",
    "content": "[Document 1, Page 2]"
  }, {
    "type": "text",
    "content": "<aggregated text content of page 2>"
  }, {
    "type": "image",
    "imageType": "image/png",
    "data": "<base64-encoded page image of page 2>"
  }]
}

BREAKING CHANGE: get_page tool is removed.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@xscratt xscratt self-assigned this Aug 14, 2026
@xscratt
xscratt requested a review from navalnica August 14, 2026 09:10
@xscratt xscratt changed the title feat: added get_pages tool as replacement for for get_page feat: added get_pages tool as a replacement for get_page Aug 14, 2026
@navalnica

navalnica commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

can we add a safeguard that limits number of pages requested in a single tool call? like max 10 images?

@xscratt
xscratt force-pushed the feat/get-pages-tool branch from 298164b to 9d3bebe Compare August 18, 2026 06:29
@xscratt
xscratt merged commit 76eadd2 into development Aug 18, 2026
8 checks passed
@xscratt
xscratt deleted the feat/get-pages-tool branch August 18, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants