Fetch Document
fetch-documentRetrieve documents from web URLs or local file paths and convert them into MCP content blocks as resource links or embedded resources.
Instructions
Fetch documents from URLs or local file paths. Downloads remote URLs into MEDIA_GEN_DIRS and returns MCP content blocks as resource_link (default) or embedded resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | Yes | Array of document sources: HTTP(S) URLs or file paths (absolute or relative to the first MEDIA_GEN_DIRS entry). Max 20 documents. | |
| tool_result | No | Controls content[] shape: 'resource_link' (default) emits ResourceLink items, 'resource' emits EmbeddedResource blocks with base64 blob. | resource_link |
| file | No | Base path for output files (used when downloading from URLs). If multiple documents are downloaded, an index suffix is added. |