Map a datasheet (deterministic index)
datasheetvend_extract_document_mapBuild the Document Map of a datasheet PDF: a deterministic, machine-readable index of WHERE the topics live (pinout, package, mechanical, electrical, timing, thermal, absolute_max, registers, cautions …) and WHAT each page physically looks like (table / prose / vector_drawing / raster_image / blank / honest unknown), including a per-page geometry census (vector paths, ruling lines, raster coverage). No LLM is involved — the same document yields the same map, cached by SHA-256, so repeat calls are served from the cache. USE IT FIRST, before reading any page of a datasheet: read the candidate pages it recommends and pick your tool per page from anatomy.dominant_form. The result is wrapped as { contractVersion, documentRef, review, map }; inside map it names map.document.total_pages (the physical page count) and, per topic, map.module_targets[].primary_pages — so it answers 'how many pages' and points to the pages likely to hold the absolute-max ratings / pinout / package drawing (a primary page can miss, so read the candidates and check the warnings). Do NOT use it to get pin names, dimensions, or ratings — it contains no extracted values (use datasheetvend_extract_pinout for pins). Page numbers are physical 1-based PDF pages, not printed labels. Check review.required and the warnings before trusting a degraded map.
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": {
"documentPath": "<documentPath>"
},
"name": "datasheetvend_extract_document_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentPath | Yes | https:// URL to the datasheet PDF. The remote /api/mcp endpoint accepts ONLY https:// URLs (it downloads them); a local filesystem path works solely in local stdio mode (npm run mcp:serve).. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | Yes | The versioned Document Map agent delivery envelope (document_map_agent_v1): document.{total_pages,sha256}, module_targets[], toc[], page_grid_summary, warnings. The top-level envelope also carries `cached` (true on a repeat call for the same document). | |
| cached | Yes | True when served from the deterministic SHA-256 cache | |
| review | Yes | ||
| documentRef | Yes | Echo of the documentPath/URL that was mapped | |
| contractVersion | Yes | Contract schema identifier: dmap_evidence_v1 |