> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/sdks/account/ai/invoke-ai-tool.md).

# Invoke Ai Tool

Invokes one AI tool directly (external-agent bridge).

The Account & Projects area manages your Norbix account and its projects — projects and environments, team members and their roles, billing and usage, and account-level settings. Handles the ai tool.

This method is on the **Hub** surface (`norbix.hub.account`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/codemash/sdks/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.account.invokeAiTool({
  toolName: 'orders',
  argumentsJson: '{}',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Account.InvokeAiToolAsync(new InvokeAiToolRequest
{
    ToolName = "orders",
    ArgumentsJson = "{}",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.account.invoke_ai_tool(
    toolName="orders",
    argumentsJson="{}",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Account.InvokeAiTool(ctx, "orders", map[string]any{
	"argumentsJson": "{}",
}, &result)
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixHub

let client = try NorbixHubClient()

let result = try await client.account.invokeAiTool([
    "toolName": "orders",
    "argumentsJson": "{}",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import ai.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.account.invokeAiTool(mapOf(
    "toolName" to "orders",
    "argumentsJson" to "{}",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub account ai tool invoke --toolName orders --argumentsJson '{}'
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
Dart / Flutter examples for this page are still in the works — we are verifying the exact SDK shapes and will add them shortly. The method itself is available in every Norbix SDK.
{% endhint %}

## In Cloud

Manage this visually in Cloud — see [Account & Projects → Ai](/codemash/cloud/project.md).

## API reference

Full request and response for this endpoint: [Invoke Ai Tool](/codemash/api-reference/account/ai/invoke-ai-tool.md).
