> ## 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.

# Scripted Tool Call • AI Agent SDK

> ScriptedToolCall: One tool call the double should emit.

# ScriptedToolCall

> Defined in the [**scripted**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/scripted.md) module.

AI Agent

One tool call the double should emit.

Attributes:
name: Tool function name, matching a tool given to the agent.
arguments: Arguments dict; serialised to JSON exactly as a provider would.
id: Optional tool-call id. Generated when omitted.

```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: ScriptedToolCall"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Properties

**name** `str`

No description available.

**arguments** `Dict[str, Any]`

No description available.

**id** `Optional[str]`

No description available.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L98)**
>
> `praisonaiagents/model_harness/scripted.py` at line 98

***

## Related Documentation

> **[Tools Concept](https://praison.ai/docs/docs/concepts/tools)**

> **[Create Custom Tools](https://praison.ai/docs/docs/guides/tools/create-custom-tools)**

> **[Tool Development](https://praison.ai/docs/docs/tutorials/advanced-tool-development)**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.