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.
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": {
"keywords": "<keywords>"
},
"name": "fetch_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| document_type | No | AD | |
| match | No | exact | |
| result_index | No |