Refresh document MCP tool
Refreshes expiring preview and download URLs for the show document widget.
- MCP tool name:
Refresh_Show_Document - Returns: Refresh document MCP response
- Annotations: Read only, not destructive, idempotent, closed world
- Available in: GovTribe MCP
Examples
Use this when an existing document viewer needs fresh preview or download URLs.
Refresh a government file preview and keep the same highlighted clause
{
"tool": "Refresh_Show_Document",
"arguments": {
"external_file_id": "<government_file_govtribe_id>",
"query": "evaluation criteria",
"scroll_to_query": true
}
}Refresh a shell artifact preview
{
"tool": "Refresh_Show_Document",
"arguments": {
"shell_file_identifier": "sandbox:/mnt/data/compliance-matrix.xlsx",
"query": "Section L",
"scroll_to_query": false
}
}Payload patterns
{
"tool": "Refresh_Show_Document",
"arguments": {
"external_file_id": "<government_file_govtribe_id>"
}
}Pass exactly one file identifier: user_file_id, external_file_id, or shell_file_identifier.
The widget refreshes expired URLs at initial load and when Download is selected after a mounted preview outlives its links. It uses the same authorized file identifier, query and scroll preference. Duplicate pending clicks share one refresh. A failed, denied or stale refresh never opens an expired URL. A refresh does not create annotation state. Do not send annotations configuration. Existing historical annotation state is restored separately through Interaction_State.
If access has been revoked or the file no longer exists, refresh returns an error. The widget does not fall back to expired links. Files without an inline preview retain authorized download behavior after refresh.
Related articles
- Refresh document MCP response: Review the response shape returned by this tool.
- Government file data type: Understand GovTribe-managed file records used by file and document tools.
- User file data type: Understand workspace-uploaded file records used by file and document tools.
Read account
Read your account plan, AI/MCP prerequisites, available prepaid/promotional/included credits, your personal allowance, and PAYG spending headroom. Free to call, including after credit depletion or paid-usage suspension. Takes no arguments. Check before starting batches and use your own replenishment thresholds. Credits and USD headroom are separate; uncapped PAYG is not infinite credits. This is an advisory local snapshot, not authorization or reserved capacity. Unknown fields are not zero. Individual tools still enforce scopes, resource permissions and feature access.
Add contacts to contact group
Add contacts to a GovTribe workspace contact group.