fetch_document
Search for a company in the German Commercial Register by keywords, select a document type, and retrieve the extracted text from the downloaded PDF or XML.
Instructions
Retrieve a register document/extract for a company and return its text.
Runs a search, picks result_index from the hits, then downloads the requested
document type from that same portal session. Document types:
AD - current extract CD - chronological extract
HD - historical extract DK - filed documents register
SI - structured XML data VÖ - announcements UT - holder data
Returns the local file path, content_type, size_bytes, and (for PDF/XML)
extracted text. Document retrieval is the most fragile part of the portal flow;
if it fails, the error explains what happened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| document_type | No | AD | |
| match | No | exact | |
| result_index | No |