UniCraft Tools

UniCraft AI Model Router - Tool and Function Calling Management

Create Tool

AI-generated

Summary

Create a new custom tool in the UniCraft system by providing its JSON definition and specifying its category.

Inputs

  • Tool Definition (required) — JSON definition of the tool to create. Must be valid JSON representing the tool's configuration.
  • Tool Category (required) — Category of the tool; options include Custom, API Integration, Data Processing, Web Scraping, File Processing, Database, and Communication.

Output shape

a single JSON object containing the created tool's details and a success flag

The output includes keys 'operation' (always 'createTool'), 'tool' with the created tool details, and 'success' as true if creation succeeded. Errors in JSON parsing or API request throw a node error.

Examples

Example 1: Create a custom web scraping tool

Set toolDefinition to the tool's JSON schema describing the web scraping functionality, and set toolCategory to 'web'.

Discussion