AIContextItemType
typedef
The type of context item.
Properties
DOCUMENT : 'document'module:ai/aicore/model/aicontext~AIContextItemType#DOCUMENTThe current editor document (used by
config.ai.chat.context.documentoption).FILE : 'file'module:ai/aicore/model/aicontext~AIContextItemType#FILEA file (PDF, Word document, etc.).
SELECTION : 'selection'module:ai/aicore/model/aicontext~AIContextItemType#SELECTIONA selection of text in the editor (used by AI Quick Actions that pass the user selection to the AI Chat).
TEXT : 'text'module:ai/aicore/model/aicontext~AIContextItemType#TEXTA text (plain text, Markdown, HTML, etc.).
TOOL : 'mcp-tool-context'module:ai/aicore/model/aicontext~AIContextItemType#TOOLA tool-related context item.
URL : 'web-resource'module:ai/aicore/model/aicontext~AIContextItemType#URLA URL (web page, blog post, etc.).