> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Interface: QueryDataTools

Renderer tools and lifecycle controls for host-backed local Query data.

## Properties

### tools

> **tools**: `Record`\<_typeof_ [`OPENUI_DATA_TOOL_NAMES`](/next/api/genui/openui/data-tools/variables/OPENUI_DATA_TOOL_NAMES.md)\[`number`], (`args`: `Record`\<`string`, `unknown`>) => `Promise`\<`unknown`>>

Registered local tools; spread into the renderer's toolProvider.

## Methods

### dispose()

> **dispose**(): `void`

Reset the scope and reject pending calls; setScope can start another lifecycle. Already dispatched host work is not aborted.

#### Returns

`void`

***

### publishDefaults()

> **publishDefaults**(`scope`: `string`, `defaults`: [`InitialQueryResults`](/next/api/genui/openui/core/type-aliases/InitialQueryResults.md)): `void`

Merge completed defaults for the current scope and initialize the host; other scopes and unchanged maps are ignored.

#### Parameters

| Parameter  | Type                                                                                     |
| ---------- | ---------------------------------------------------------------------------------------- |
| `scope`    | `string`                                                                                 |
| `defaults` | [`InitialQueryResults`](/next/api/genui/openui/core/type-aliases/InitialQueryResults.md) |

#### Returns

`void`

***

### setScope()

> **setScope**(`scope`: `string`): `void`

Select a data scope, resetting defaults and rejecting pending calls when the scope changes.

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `scope`   | `string` |

#### Returns

`void`
