Create dossier share
create_dossier_shareMint a shareable link to a dossier for someone with no account, and return the URL. include_internal decides WHO the link is for: without it (the default) the link shows only the non-internal documents — that is the link for partners and third parties. With it the link also shows the internal ones, calculation and working notes, and is the tool for internal sign-off: management, costing, project lead. The way to the contracting authority is never the link but the prepared PDF or Word file from export_dossier, which leaves the internal parts out. Pass exactly one of tender_id / grant_id. Every gate is optional and they combine: expires_in_hours or expires_at (time limit), password, allowed_emails (only these addresses may open it), require_email_code (confirm the address with a one-time code — needs a configured mail sender, otherwise the link cannot be opened at all), max_views (dies after N opens). With no gate the token itself is the only protection: fine for a short-lived link, wrong for anything you would not want forwarded. The URL is returned once — it is stored hashed nowhere, but the token is stored, so list_dossier_shares can show it again.
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": "create_dossier_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Your own note about who this link went to, e.g. "Angebot an infomax". | |
| grant_id | No | ||
| password | No | Passphrase the visitor must type. Stored as PBKDF2-SHA256, never in clear — so it cannot be read back and must be communicated separately. | |
| max_views | No | Link stops working after this many successful opens. | |
| tender_id | No | ||
| expires_at | No | ISO timestamp. Takes precedence over expires_in_hours. | |
| allowed_emails | No | Only these addresses may open the link. | |
| expires_in_hours | No | Convenience for expires_at; 168 = one week. | |
| include_internal | No | true = internal link: also shows the documents marked is_internal (price calculation, working notes). Default false. Cannot be switched on afterwards — an already forwarded link must not retroactively show more than the sender meant; create a second link instead. Switching it off later is allowed, it only takes away. Combines with every gate. | |
| require_email_code | No | Confirm the address by sending it a one-time code. Without this the address is only recorded, which identifies a cooperative reader but authenticates nobody. |