GovTribe

Refresh document MCP response

MCP tool response returned by the Refresh document MCP tool.

Response Shape

The response refreshes the expiring preview and download URLs for a document already shown through the document app.

FieldTypeNotes
idstringGovTribe user file or government file identifier.
govtribe_typestringuser_file or government_file.
titlestringDisplay title for the document.
filenamestringSource filename.
extensionstringLowercase file extension.
mime_typestring or nullMIME type when known.
viewer_urlstringTemporary URL for previewing the document.
open_urlstringTemporary URL used to open the document.
download_urlstringTemporary URL used to download the document.
url_expires_atstringISO timestamp for the temporary URL expiration.
govtribe_urlstringGovTribe web URL for the file record.
querystring or nullOptional search text to locate in the document.
scroll_to_querybooleanWhether the viewer should scroll to the query.
viewablebooleanWhether the file can be previewed in the document app.

Follow-up Behavior

Call Refresh_Show_Document when a document preview or download URL is expired or close to expiring.

Example

{
  "id": "FILE_ID",
  "govtribe_type": "user_file",
  "title": "Pricing summary",
  "filename": "pricing-summary.pdf",
  "extension": "pdf",
  "mime_type": "application/pdf",
  "viewer_url": "https://govtribe.com/temporary/files/FILE_ID/view",
  "open_url": "https://govtribe.com/temporary/files/FILE_ID/open",
  "download_url": "https://govtribe.com/temporary/files/FILE_ID/download",
  "url_expires_at": "2026-05-06T13:00:00+00:00",
  "govtribe_url": "https://govtribe.com/workspaces/WORKSPACE_ID/files/FILE_ID",
  "query": "pricing assumptions",
  "scroll_to_query": true,
  "viewable": true
}