GovTribe

Show document MCP response

MCP tool response returned by the Show document MCP tool.

Response Shape

The response describes the document viewer payload. When annotations are enabled, it also includes interactive annotation state.

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.
interactionIdstringPresent when annotations are enabled.
kindstringdocument_annotation when annotations are enabled.
statusstringInitial annotation status, usually pending.
annotationConfigobjectAnnotation tool and submit-label configuration.
annotationsarrayNormalized annotation list. Starts empty.
annotationCountintegerCount of submitted annotations. Starts at 0.
xfdfstring or nullXFDF annotation state when present.
lastChangedAtstring or nullLast annotation change timestamp when present.

Follow-up Behavior

Use Refresh document MCP response when preview URLs need to be refreshed. Use Interaction state MCP response to read or persist annotation state for interactive document markup.

Example

{
  "id": "FILE_ID",
  "govtribe_type": "government_file",
  "title": "Solicitation attachment",
  "filename": "solicitation.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/files/FILE_ID",
  "query": "delivery schedule",
  "scroll_to_query": true,
  "viewable": true,
  "interactionId": "document_annotation:INTERACTION_ID",
  "kind": "document_annotation",
  "status": "pending",
  "isInteractive": true,
  "document": {
    "id": "FILE_ID",
    "govtribeType": "government_file",
    "title": "Solicitation attachment",
    "filename": "solicitation.pdf",
    "extension": "pdf",
    "mimeType": "application/pdf"
  },
  "annotationConfig": {
    "enabled": true,
    "tools": ["highlight"],
    "helperText": "Mark important sections.",
    "submitLabel": "Submit annotations"
  },
  "annotations": [],
  "annotationCount": 0,
  "xfdf": null,
  "lastChangedAt": null
}