Documentation
Learn how to use Compozy
Learn about the parameters and definitions of tools in Compozy.
{ "type": "object", "required": ["tools"], "properties": { "tools": { "type": "array", "items": { "type": "object", "required": ["id", "use", "schema"], "properties": { "id": { "type": "string", "description": "Unique identifier for the tool" }, "use": { "oneOf": [ { "type": "string" }, { "type": "object", "required": ["repo", "package"], "properties": { "repo": { "type": "string" }, "package": { "type": "string" }, "version": { "type": "string" } } } ], "description": "Tool implementation reference" }, "import": { "type": "string", "description": "Path to external tool definition file" }, "config": { "type": "object", "description": "Tool-specific configuration options" }, "env": { "type": "object", "description": "Environment variables specific to this tool instance" }, "schema": { "type": "object", "required": ["input", "output"], "properties": { "config": { "type": "object", "description": "Schema for tool-specific configuration options" }, "input": { "type": "object", "description": "Schema for the tool's input parameters" }, "output": { "type": "object", "description": "Schema for the tool's output format" } } } } } } } }
"repo/package"
"compozy/tools:web-search"
"repo:package@version"
"compozy/tools:web-search@1.0.0"
repo
package
tools: - id: web_search use: compozy/tools:web-search
Show Properties
{{ tools.tool_id.output }}
{ "data": { "results": ["result1", "result2"], "metadata": { "total": 2, "timestamp": "2024-03-20T10:30:00Z" } } }
{ "code": "EXECUTION_ERROR", "message": "Failed to execute tool", "details": { "type": "validation_error", "reason": "Invalid input parameters" } }