Skip to main content

Crate tokmd_tool_schema

Crate tokmd_tool_schema 

Source
Expand description

Tool-schema generation for AI agent tool use.

This crate introspects a clap Command tree and produces schema output in formats commonly consumed by AI tooling.

Structs§

ParameterSchema
Schema for a single parameter/argument.
ToolDefinition
Definition of a single command/tool.
ToolSchemaOutput
Top-level schema output with envelope metadata.

Enums§

ToolSchemaFormat
Output format for rendered tool schemas.

Constants§

TOOL_SCHEMA_VERSION
Schema version for tool definitions.

Functions§

build_tool_schema
Build the tool schema from a clap Command.
render_output
Render the schema output in the specified format.