NEWCKEditor AI on your premises: Hook your LLM and register MCP tools. Webinar coming soon!
Sign up (with export icon)

AIContextItemType

Api-typedef icontypedef

The type of context item.

Properties

  • Chevron-right icon

    DOCUMENT : 'document'

    The current editor document (used by config.ai.chat.context.document option).

  • Chevron-right icon

    FILE : 'file'

    A file (PDF, Word document, etc.).

  • Chevron-right icon

    SELECTION : 'selection'

    A selection of text in the editor (used by AI Quick Actions that pass the user selection to the AI Chat).

  • Chevron-right icon

    TEXT : 'text'

    A text (plain text, Markdown, HTML, etc.).

  • Chevron-right icon

    TOOL : 'mcp-tool-context'

    A tool-related context item.

  • Chevron-right icon

    URL : 'web-resource'

    A URL (web page, blog post, etc.).