Fetch a document (deep research)
fetchFetch one document's full extracted text by id (a file id from search / search_files / list_files), in the deep-research result shape. ALIAS: this is the SAME read as get_file (same data, same permissions, same audit, same size guard - large files are truncated) - use it when your client requires the id/title/text/url fetch contract (ChatGPT deep research); otherwise prefer get_file, which also serves download links and inline images. Read-only; audited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document id - a file id from search, search_files, or list_files. | |
| handle | No | Optional: name one of the user's OWN profiles by its public @handle (with or without the leading @), as listed by list_profiles - an alternative to projectId, and it takes precedence if both are given. Honored only for an account-wide connection; a single-project connection is already scoped and ignores it. A handle that is not one of the user's own profiles is refused outright, never quietly swapped for another profile. To read context someone ELSE shared with the user or published, use shared_context instead. | |
| projectId | No | Optional: which of the user's projects holds the file. Honored only for an account-wide connection; a single-project connection is already scoped and ignores this. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The requested file id. | |
| url | Yes | Where the user manages this file (the usemycontext.ai Storage page). | |
| text | Yes | The file's full extracted text (truncated at the same size guard as get_file). | |
| title | Yes | The file's name. | |
| metadata | No |