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

Method

> This is a method of the [**BaseTool**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/BaseTool.md) class in the [**base**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/base.md) 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

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

The result of the operation.

## 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] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/base.py#L331)
>
> `praisonaiagents/tools/base.py` at line 331


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