fetch
Retrieves the complete content of a document using its ID from search results. Returns full text, title, URL, and metadata.
Instructions
GET FULL DOCUMENT CONTENT: fetch(id="result_id")
FUNCTION NAME: fetch
Retrieves the full content of a document from search results.
USAGE:
First use search() to find relevant documents
Use the 'id' from search results to fetch full content
Returns complete document text with metadata
PARAMETERS: • id (required): Document ID from search results. Use the exact ID returned by search.
RETURNS: • id: Document identifier • title: Document title • text: Full document content (markdown or code) • url: Link to online documentation (if available) • metadata: Source information and content details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document ID from search results. Use exact IDs returned by search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| title | Yes | ||
| text | Yes | ||
| url | Yes | ||
| metadata | No |