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 checks. The list of predefined review checks with available parameters can be found in the AI Review documentation. Extra review checks 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 check:

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

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

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

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

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

Properties

  • Chevron-right icon

    check : string | undefined
    readonly

    The ID of the review check 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 checks.

  • 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 check 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 checks 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 check that requires a prompt.

  • Chevron-right icon

    type : 'review'

    The type of the shortcut.