# PDFViewer.tools

```ts
get tools(): ToolsApi
```

Handles for running tools — see [viewer.tools.editText](https://kernstra.com/docs/web-sdk/api/viewer-tools-edittext). A handle throws `SDKError` `INVALID_STATE`, with instructions, when its tool is not running, rather than failing silently.

- Kind: getter
- Since: 1.0.0

Returns `ToolsApi`

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

Part of [PDFViewer](https://kernstra.com/docs/web-sdk/api/pdfviewer) in the Kernstra Web SDK 1.0.0 API reference.

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