resolve_contract_file
Fetch a bridge-LINKED contract file on demand (Ticket T3). A document imported with modus 'referenz' holds only a link (source_meta.kind='bridge') and no bytes, so get_document_link / analyze_document have nothing to serve. This re-fetches the original through the bridge into the document store (sets its storage_path + file_size) so it can then be opened or analysed; the link metadata stays, and a later re-import resets it to a reference. If the document already has bytes it returns them unchanged. Required: document_id (a contract document, from list_documents / get_document). The bridge named in the link must be reachable.
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": {
"document_id": "<document_id>"
},
"name": "resolve_contract_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ID of the document |