# AIDocumentProcessingRunOptions

typedef

<a id="properties">

## Properties

<a id="member-capabilities">

### `capabilities?: AICapabilitiesConfigAdvanced`

Per-call AI capability directives. `webSearch` toggles web search; `reasoning` toggles reasoning and optionally selects a level (see [AIReasoningLevel](module_ai_aicore_model_aicapabilities-AIReasoningLevel.md)). Omitting the option or leaving all flags falsy disables both capabilities for this call.

<a id="member-model">

### `model: string`

The model that will be used to run the document processing request. The IDs of an AI models can be acquired via [`getAvailableModels`](module_ai_aicore_model_aimodels-AIModels.md#function-getAvailableModels) call.

<a id="member-roots">

### `roots?: Array<AIEditorRoot>`

The roots to process. When omitted, every non-`$graveyard` root across every editor in the current [`Context`](module_core_context-Context.md) is processed. When provided, only the listed roots are processed; the order of entries in `roots` is treated as a set-membership filter and does not affect the payload order.

Each entry's `channelId` must match the `collaboration.channelId` config of the target editor instance. `rootName` must match an existing, non-`$graveyard` root within that editor.

#### Value

`AIRunBaseOptions & object`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
