# Interface: AgentRunContext

## Properties[​](#properties "Direct link to Properties")

### executeTool()[​](#executetool "Direct link to executeTool()")

```ts
executeTool: (name: string, args: unknown) => Promise<unknown>;

```

Tool implementations should sanitize failure text — errors become `tool_result.error` and can flow back into the LLM transcript.

#### Parameters[​](#parameters "Direct link to Parameters")

| Parameter | Type      |
| --------- | --------- |
| `name`    | `string`  |
| `args`    | `unknown` |

#### Returns[​](#returns "Direct link to Returns")

`Promise`<`unknown`>

***

### signal?[​](#signal "Direct link to signal?")

```ts
optional signal: AbortSignal;

```
