<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[playground](../../) / [Exports](../modules) / IToolHooks

# Interface: IToolHooks

## Table of contents

### Methods

- [beforeExecute](IToolHooks#beforeexecute)
- [afterExecute](IToolHooks#afterexecute)
- [onError](IToolHooks#onerror)

## Methods

### beforeExecute

▸ **beforeExecute**(`toolName`, `parameters`, `context?`): `Promise`\<`void`\>

#### Parameters

| Name         | Type                    |
| :----------- | :---------------------- |
| `toolName`   | `string`                |
| `parameters` | `TToolParameters`       |
| `context?`   | `IToolExecutionContext` |

#### Returns

`Promise`\<`void`\>

#### Defined in

[playground/src/lib/playground/block-tracking/block-hooks.ts:11](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/block-tracking/block-hooks.ts#L11)

---

### afterExecute

▸ **afterExecute**(`toolName`, `parameters`, `result`, `context?`): `Promise`\<`void`\>

#### Parameters

| Name         | Type                    |
| :----------- | :---------------------- |
| `toolName`   | `string`                |
| `parameters` | `TToolParameters`       |
| `result`     | `TUniversalValue`       |
| `context?`   | `IToolExecutionContext` |

#### Returns

`Promise`\<`void`\>

#### Defined in

[playground/src/lib/playground/block-tracking/block-hooks.ts:12](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/block-tracking/block-hooks.ts#L12)

---

### onError

▸ **onError**(`toolName`, `parameters`, `error`, `context?`): `Promise`\<`void`\>

#### Parameters

| Name         | Type                    |
| :----------- | :---------------------- |
| `toolName`   | `string`                |
| `parameters` | `TToolParameters`       |
| `error`      | `Error`                 |
| `context?`   | `IToolExecutionContext` |

#### Returns

`Promise`\<`void`\>

#### Defined in

[playground/src/lib/playground/block-tracking/block-hooks.ts:13](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/block-tracking/block-hooks.ts#L13)
