document
Ingest, validate, inspect, and extract PDF content (tables, figures, sections) for AI analysis and knowledge graph integration.
Instructions
Consolidated PDF document entrypoint with explicit operation contracts.
Operation -> required parameters:
auto: exactly one offile_paths(ingest) ordoc_id(readiness).ingest/import:file_paths.preflight:pdf_pathonly;file_pathsis rejected.inspect/prepare_ai/ audit and retrieval operations:doc_id.export_assets/agent_assets:doc_id;output_diris optional.
Existing direct document tools stay registered and keep their original
contracts. The facade descriptions make op-specific requirements visible
even though the shared JSON schema can require only op globally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Facade operation name. preflight requires pdf_path; auto/ingest/import use file_paths; export_assets/agent_assets require doc_id. | |
| page | No | ||
| limit | No | ||
| query | No | ||
| deskew | No | ||
| doc_id | No | Identifier of an already ingested document; required by inspect, prepare_ai, audit, retrieval, and export_assets operations. | |
| refresh | No | ||
| criteria | No | ||
| doc_b_id | No | ||
| pdf_path | No | Single PDF path required by preflight and used by PDF-specific facade operations. preflight never consumes file_paths. | |
| async_mode | No | ||
| file_paths | No | Source document paths for auto, ingest, or import. This batch field is not accepted by preflight; pass exactly one PDF through pdf_path. | |
| output_dir | No | Managed child output directory. For export_assets it is resolved inside the document directory and defaults to agent-assets. | |
| use_marker | No | ||
| ocr_enabled | No | ||
| output_path | No | ||
| page_ranges | No | ||
| show_labels | No | ||
| ocr_language | No | eng | |
| rotate_pages | No | ||
| output_format | No | markdown | |
| extract_figures | No | ||
| include_reading_order | No | ||
| index_knowledge_graph | No | ||
| marker_max_pages_per_chunk | No |