G2XGovCon MCPCreate G2X account

GOVCON MCP / TOOL REFERENCE / DOCUMENTS AND ANALYSIS

Read an opportunity document

g2x_opportunity_attachment_text

What it does

Returns the complete text of an opportunity document already on file in G2X — solicitation, statement of work, amendment — as Markdown (the stored parse, byte for byte) or as structured JSON (every page with its text and elements). A large document arrives in exact chunks: each result names the whole document's byte count and SHA-256 and, until the last byte, a next_cursor to continue from; nothing is ever cut without saying so. With page, it returns that one page instead. Serves stored content only; it never starts a new parse.

Inputs

  • opportunity_id (text, required): G2X opportunity record identifier
  • attachment_id (text, required): An attachment id from the opportunity's source-documents list
  • format (text, optional): The whole document as Markdown (the stored parse, byte for byte; the default) or as structured JSON (every page with its text and elements, schema g2x-document-json-v1). A cursor continues the format it was issued for. Allowed values: markdown, json.
  • cursor (text, optional): Byte continuation from a previous document or page result's next_cursor. When omitted, reading starts at the first byte.
  • page (whole number, optional): Optional 1-based page (or section) of the document as Markdown. When omitted, the whole document is read; format=json needs the whole document.

What it returns

Depending on the request, one of:

  • The whole document as Markdown or JSON, in exact chunks with a cursor to the next one, its size and its checksum.
  • One page or section of the document's text, with the next page to read.

Try asking

Read the whole statement of work for this opportunity as Markdown.

AI and your account

  • Does not use G2X's own AI: your agent does any analysis with its own model.
  • Reads only: it changes nothing in your G2X account.

Next steps