A comprehensive system for registering, documenting, and managing function-calling tools within the PydanticAI framework.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install pydantic-ai-tool-system
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install pydantic-ai-tool-system using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The PydanticAI Tool System provides a structured way to extend AI agents with custom capabilities through function calling. By leveraging Python's type hinting and Pydantic's validation, it allows developers to create robust interfaces that LLMs can reliably interact with. This Openclaw Skills component ensures that your agent can perform real-world actions like database queries, API calls, and complex calculations while maintaining strict type safety.
At its core, the system distinguishes between tools that require execution context (dependencies, usage tracking, and message history) and plain tools that operate independently. By using specialized decorators and standard docstring formats, it bridges the gap between raw Python code and AI-readable instructions, making it a vital part of any Openclaw Skills implementation focused on agentic workflows.
To get started with this tool system within your Openclaw Skills project, ensure you have pydantic-ai installed:
pip install pydantic-ai
Basic implementation example:
from pydantic_ai import Agent
agent = Agent('openai:gpt-4o')
@agent.tool_plain
def get_weather(location: str) -> str:
"""Get the current weather for a location.
Args:
location: The city and state.
"""
return f"The weather in {location} is sunny."
The PydanticAI Tool System organizes data through structured schemas and metadata to ensure seamless LLM integration:
| Component | Description |
|---|---|
| RunContext | Contains deps (dependencies), usage (tokens), and messages (history). |
| ToolDefinition | Metadata including tool name, description, and JSON schema for parameters. |
| ToolReturn | A wrapper for complex return types like ImageUrl or specialized binary data. |
| FunctionToolset | A collection of related tools that can be shared across multiple agents. |
prepare_tools to filter or modify available functions at runtime based on the specific request context.ToolReturn objects allowing agents to return non-textual data like images directly from tools.FunctionToolset objects to create complex, multi-domain agent capabilities.RunContext.Loading
A powerful command-line interface for scraping, crawling, and performing AI-powered structured data extraction from any website.

A professional framework for building, animating, and rendering high-quality videos programmatically using React and Remotion v4.

A specialized AI agent skill designed to transform autonomous agents into high-efficiency employees that execute, communicate, and deliver results under a CEO coordinator.

An automated diagnostic skill that synthesizes messy operational logs and state snapshots into structured, evidence-led incident reports.

A specialized comparison tool for AI agents to analyze drift between JSON queue snapshots and detect operational regressions.

A specialized tool for tracking lab equipment calibration dates and generating automated maintenance reminders.








































