export_contracts_excel
Export the contracts — ALL types (rental, service, maintenance, lease, insurance, …) unless contract_type narrows it — as an Excel file (Vertraege-.xlsx; Mietvertraege-… with contract_type=rental). Sheets: Verträge (one row per contract: type, status, our role, our company, counterparty, linked organisation and person, then the extracted fields incl. calculated €/m² for rentals, then one column per custom field); the tenant's own sheets from set_contract_scan_rules.export_sheets, if any (each contract on the sheet that matches its 'blatt' custom field, with the columns defined there); Fristen (every deadline by date); Zu prüfen (low-confidence fields, contradictions, unreadable pages, unassigned files); Dateien (every file and its contract). Optional: scan_id (adds unassigned files of that scan), only_extracted (default true), write_to {bridge, folder, path} — also writes the .xlsx into that folder on the connected computer. Returns a download link (7 days).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_contracts_excel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan_id | No | ID of the scan | |
| write_to | No | Also write the .xlsx into this folder on a connected computer | |
| contract_type | No | Only contracts of this type, e.g. rental | |
| only_extracted | No | Only contracts with extracted facts (default true) |