> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool Plugin Protocol • Rust AI Agent SDK

> ToolPluginProtocol: Tool-providing plugin protocol

# ToolPluginProtocol

> Defined in the [**plugins**](../modules/plugins) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Tool-providing plugin protocol

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    agent["Agent"] -- "uses" --> tool["Tool: ToolPluginProtocol"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Methods

### `get_tools`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn get_tools(&self) -> Vec<ToolDefinition>
```

Get tool definitions provided by this plugin

### `execute_tool`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn execute_tool(&self, name: &str, args: serde_json::Value) -> Result<serde_json::Value, String>
```

Execute a tool by name

**Parameters:**

| Name   | Type                |
| ------ | ------------------- |
| `name` | `&str`              |
| `args` | `serde_json::Value` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/parity/plugins.rs">
  `praisonai/src/parity/plugins.rs` at line 0
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Tools" icon="wrench" href="/docs/rust/tools" />

  <Card title="Rust Code Execution" icon="terminal" href="/docs/rust/code-execution" />

  <Card title="Rust Web Search" icon="search" href="/docs/rust/web-search" />

  <Card title="Rust Plugins" icon="plug" href="/docs/rust/plugins" />
</CardGroup>
