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

AIChatShortcutReviewDefinition

Api-interface iconinterface

A shortcut that interacts with the AI Review.

Note: This shortcut type requires the AIReviewMode plugin to be loaded.

This type of shortcut can run both predefined and extra review commands. The list of predefined review commands with available parameters can be found in the AI Review documentation. Extra review commands are defined via the config.ai.review.extraCommands configuration.

Example of a shortcut that opens the AI Review mode:

{
	id: 'open-review',
	label: 'Open review',
	type: 'review'
}
Copy code

Example of a shortcut that runs the 'correctness' review command:

{
	id: 'check-correctness',
	label: 'Proofread this document',
	type: 'review',
	commandId: 'correctness'
}
Copy code

Example of a shortcut that runs the 'tone' review command with a parameter:

{
	id: 'adjust-tone',
	label: 'Change the tone of this document to casual',
	type: 'review',
	commandId: 'tone',
	params: [ 'casual' ]
}
Copy code

Example of a shortcut that runs the 'custom' review command with a specific model and a prompt:

{
	id: 'custom-review',
	label: 'Custom grammar command using the gpt-5.1 model',
	type: 'review',
	commandId: 'custom',
	model: 'gpt-5.1',
	prompt: 'Check grammar and style.'
}
Copy code

Properties

  • Chevron-right icon

    commandId : string | undefined
    readonly

    The ID of the review command to be run.

    Note: When not provided, the shortcut will switch the user interface to the AI Review.

    See config.ai.review.availableCommands for the list of available review commands.

  • Chevron-right icon

    icon : string | undefined
    readonlyinherited

    The icon of the shortcut in SVG string format.

    Learn more about setting the icon in the IconView API reference.

    Note: When not provided, a generic icon associated with the shortcut type will be used instead.

  • Chevron-right icon

    id : string
    readonlyinherited

    The unique identifier of the shortcut.

  • Chevron-right icon

    label : string
    readonlyinherited

    The human-readable label of the shortcut.

  • Chevron-right icon

    model : string | undefined
    readonly

    The ID of the model to be used for the 'custom' review command that requires a model identifier.

    See the integration guide to learn more about available models.

    Note: When not provided, the default model will be used instead. See config.ai.models.defaultModelId to learn more.

  • Chevron-right icon

    params : Array<string> | undefined
    readonly

    The parameters to be used for review commands that require parameters (e.g. 'length', 'tone', etc.).

  • Chevron-right icon

    prompt : string | undefined
    readonly

    The prompt to be sent to the AI Review for the 'custom' review command that requires a prompt.

  • Chevron-right icon

    type : 'review'

    The type of the shortcut.