Share a report by a public link
share_reportMakes a public link to a report (https://reports.codegene.ai/...): ANYONE who has the address can read the report, without signing in. For a password use share_report_with_password. The public link lasts until it ends 1, 7 or 30 days from now, or until someone ends it when open_until_ended is true. It shows the newest version and moves to each later version once that version passes CodeGene's share check. Only the workspace's owners and admins may make one, and every owner and admin is told in their CodeGene Inbox that an assistant made it. Make one only when the person asks to share the report outside the workspace. First read the report: set contains_no_personal_data only after checking that it, its title and the label hold no names, email addresses, phone numbers or other details of real people, or list in named_people each person it names who agreed to be named, with a reference to their agreement. CodeGene still checks the report itself. Asking again on the same terms hands back the same open link, renewed from now, at the same address.
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": {
"report_id": "<report_id>"
},
"name": "share_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | What the person calls the link, for example `client review`. | |
| report_id | Yes | The report to share (list_reports gives ids). | |
| named_people | No | Instead of contains_no_personal_data: each real person the report names, who agreed to be named in it. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| lifetime_days | No | How many days the link works from now: 1, 7 or 30. 7 when left out. Leave it out when open_until_ended is true. | |
| open_until_ended | No | The link never expires: it works until the person or another owner or admin ends it (end_report_link), like a shared artifact's link. Only when the person asks for a link that stays up; never with lifetime_days. | |
| contains_no_personal_data | No | You read the report, its title and the label, and they hold no personal details of real people. Give this or named_people, exactly one. |