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

# Get Schema • AI Agent SDK

> get_schema: Get OpenAI-compatible function schema for this tool.

# get\_schema

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BaseTool**](../classes/BaseTool) class in the [**base**](../modules/base) module.

Get OpenAI-compatible function schema for this tool.

Applies dynamic schema overrides if present.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_schema() -> Dict[str, Any]
```

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  The result of the operation.
</ResponseField>

## Uses

* `copy.deepcopy`
* `logging.warning`

## Used By

* [`BaseTool.validate`](../functions/BaseTool-validate)
* [`BaseTool.validate_schema_roundtrip`](../functions/BaseTool-validate_schema_roundtrip)
* [`get_tool_schema`](../functions/get_tool_schema)
* [`ToolEntry.schema`](../functions/ToolEntry-schema)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/base.py#L317">
  `praisonaiagents/tools/base.py` at line 317
</Card>
