AIContextItemType
Value
'mcp-tool-context' | 'file' | 'image' | 'document' | 'web-resource' | 'text' | 'selection'
The type of context item.
Available types:
'mcp-tool-context': a tool-related context item,'file': a file (PDF, Word document, etc.),'document': all current editors documents (one per each root in each editor),'image': an image file — internal sub-type of file, derived from the file's MIME type so the chip renders a distinct icon. Serialized to the backend as 'file'. (used by config.ai.chat.context.document option),'web-resource': a URL (web page, blog post, etc.),'text': a text (plain text, Markdown, HTML, etc.),'selection': a selection of text in the editor (used by AI Quick Actions that pass the user selection to the AI Chat).'mcp-tool-context' | 'file' | 'image' | 'document' | 'web-resource' | 'text' | 'selection'