inspect_pdf_links
Reports Markdown/HTML link references before PDF conversion without writing files, showing local sources, PDF candidates, and evidence so ambiguous mappings can be reviewed.
Instructions
Inspect Markdown/HTML references before PDF conversion, without writing files.
Reports local source paths, source existence, actual PDF candidates, nearby
PDFs and selection evidence. A unique same-stem PDF or recorded source can
be selected automatically; variants and competing sources need review.
For differently named legacy PDFs, inspect nearby files and project output
conventions; the tool cannot infer arbitrary correspondence from a name.
Supply pdf_targets mapping source filenames to actual PDF filenames, or
null to retain the source (e.g. README.md without a PDF). Relative mapping
paths resolve from file_path's directory. A target's .pdf-links.json can
persist a reviewed mapping, relative to that manifest's directory.
Non-Markdown/HTML targets such as .py files retain their original paths.
PDF chapter fragments are verified against the actual PDF. Ambiguous or
missing chapters require resolve_pdf_destination and a pdf_destinations
mapping from the original href to the chosen verified fragment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "inspect_pdf_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| pdf_targets | No | ||
| pdf_destinations | No |