# ToolsApi

The running tools a viewer exposes to code, reached as [`viewer.tools`](https://kernstra.com/docs/web-sdk/api/pdfviewer/tools). Constructed by the SDK. Today it holds one handle, [`editText`](https://kernstra.com/docs/web-sdk/api/viewer-tools-edittext).

- Kind: namespace
- Access: `viewer.tools`

## Tools

### `editText`

```ts
get editText(): EditTextToolApi
```

Control surface for the Edit Text tool: list, open, retype and commit text blocks from code. Every method of it needs the tool to be active (`viewer.activateTool('editText')`, which needs the license's `edit-text` feature); see [`EditTextToolApi`](https://kernstra.com/docs/web-sdk/api/viewer-tools-edittext).

- Kind: getter
- Since: 1.0.0

Returns `EditTextToolApi`

```ts
await viewer.activateTool('editText');
const blocks = await viewer.tools.editText.listBlocks(0);
```

Page: https://kernstra.com/docs/web-sdk/api/tools-api/edittext

Web page: https://kernstra.com/docs/web-sdk/api/tools-api
