Tools

Compare two PDFs

Compare the text of two versions of a PDF page by page: which pages changed, were added or removed, and the words that changed, marked [-removed-] and {+added+}.

Same tool as the MCP server's pdf_compare. Runs before responding; for long work, POST /v1/jobs instead.

post/v1/tools/pdf_compare

Request

  • Base URL: http://127.0.0.1:7341
  • URL: http://127.0.0.1:7341/v1/tools/pdf_compare
  • Auth: HTTP bearer

Request body

beforestring required

Path to the earlier PDF inside an allowed folder.

afterstring required

Path to the revised PDF inside an allowed folder.

max_charsinteger

Most characters of marked text returned per page.

Response

The result. Any new files are written inside the allowed folders.

summarystring required

Changes

No recorded changes to this operation across all 1 revision of this API.