Documento para Deep Research
fetchRetrieves the complete readable document and canonical URL for a search result ID, returning title, text, and metadata for citation.
Instructions
Returns the full document for an id obtained from search, as { id, title, text, url, metadata }: text is the readable content (Markdown) and url the canonical public page to cite.
Companion of search in the OpenAI Deep Research contract, over the IBGE (Brazilian official statistics: SIDRA tables, municipalities, known indicators) catalog. Only ids returned by search are valid; an unknown id returns an error.
the ibge_* tools (ibge_sidra, ibge_cidades, ibge_indicadores, ibge_comparar…) remain the tools for data queries.
Behavior: read-only and idempotent — a live GET against the public source when the document needs it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identificador de um documento devolvido por `search` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identificador único do documento no servidor; é o que `fetch` recebe | |
| url | Yes | URL pública canônica do documento — a citação do ChatGPT depende dela | |
| text | Yes | Conteúdo integral do documento, legível (Markdown) | |
| title | Yes | Título legível do documento | |
| metadata | No | Pares chave/valor adicionais sobre o documento (tipo, fonte, período…) | |
| provenance | Yes | Bloco de proveniência (contrato v1.0): fonte, URL, período, extração e licença | |
| attribution | Yes | URLs canônicas das fontes desta resposta (lista de atribuição) |