# ITool

Represents a tool that can be called by the model.

Interface 

`IntelligenceX.Tools`

**Namespace**

`IntelligenceX.Tools`

**Assembly**

`IntelligenceX`

**Source**

[ITool.cs:10](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ITool.cs#L10)

**Modifiers**

abstract

Represents a tool that can be called by the model.

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 2

- Method [ToolRegistry.Register](/api/intelligencex-tools-toolregistry/#method-register-intelligencex-tools-itool) parameter `tool`
- Method [ToolRegistry.TryGet](/api/intelligencex-tools-toolregistry/#method-tryget-string-intelligencex-tools-itool) parameter `tool`

Filter members 

Show inherited

## Methods

`public abstract Task<string> InvokeAsync(JsonObject? arguments, CancellationToken cancellationToken)` [#](#method-invokeasync-intelligencex-json-jsonobject-threading-cancellationtoken)

Executes the tool with the provided arguments.

Parameters

**arguments IntelligenceX.Json.JsonObject? required**

Parsed tool arguments (may be null).

**cancellationToken System.Threading.CancellationToken required**

Cancellation token.

Returns

`Task<string>` Tool output text.

## Properties

`public abstract ToolDefinition Definition { get; }` [#](#property-definition)

Tool definition metadata.

<!-- PowerForge markdown artifact sha256:BCE9C2A9127B5335894163ECC0EE61D758731210AFAC06E66457BC3A9D5FC3CC -->
