# `AshAi.Tool.Schema`
[🔗](https://github.com/ash-project/ash_ai/blob/v0.6.1/lib/ash_ai/tool/schema.ex#L5)

Generates JSON schemas for tool parameters.

Supports both strict and non-strict modes:
- strict mode transforms schemas for OpenAI-compatible strict tool calling
- non-strict mode strips `additionalProperties` for providers like Gemini

# `for_action`

Generates a JSON schema for a given action.

# `for_tool`

Generates a JSON schema for the given tool definition.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
