resolve_pdf_destination
Locate a chapter in a target PDF without writing files by searching named destinations, outline titles, and text lines; returns page, evidence, and candidates.
Instructions
Locate a chapter in the actual target PDF without writing files.
Searches existing named destinations, exact normalized outline titles, then
complete text lines. target is the title, source anchor, or PDF fragment.
Returns status, physical 1-based page, printed page_label, evidence basis,
and candidates. Only a unique match returns a top-level fragment and uri.
For repeated titles, inspect the candidates and use page to narrow the
search or select a candidate's fragment. Never guess printed-page offsets.
For scans without usable text or bookmarks, use OCR to establish the page,
then validate page=N here. Text-line matches require context review.
Use the returned URI for PDF links, or pass pdf_destinations={original_href:
fragment} when converting Markdown/HTML. Recheck after the target changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| target | Yes | ||
| file_path | Yes |