본문으로 건너뛰기

ToolCreate

Payload used to create Tool. Required fields are name, description, type.

하나 이상(anyOf)
collection_idstring필수
nameName (string)필수

Possible values: non-empty and <= 128 characters, Value must match regular expression ^[a-z][a-z0-9_]{0,127}(?![\s\S])

alias object
하나 이상(anyOf)
string
descriptionDescription (string)필수

Description of the tool's functionality

typeType (string)필수

Tool type

Possible values: [python, agent, workflow, mcp]

collection_id object

Identifier of the containing collection.

하나 이상(anyOf)
string

Possible values: non-empty

folder_id object
하나 이상(anyOf)
string
tags object
하나 이상(anyOf)
  • Array [
  • string
  • ]
  • function object

    Python function schema

    하나 이상(anyOf)
    sourceSource (string)필수
    inputs object
    property name*any
    기본값: {}
    outputs object
    property name*any
    기본값: {}
    dependenciesstring[]
    기본값: []
    decorators object[]

    Decorator bindings declared in configuration. Configured bindings take precedence over source bindings with the same kind and name; an empty list uses source bindings only.

  • Array [
  • decoratorDecorator (string)필수

    Decorator name, such as use_connector or use_llm. The name must identify a supported decorator.

    nameName (string)필수

    Binding variable name injected into the namespace

    arguments object

    Decorator arguments, e.g. {'ref':...} or {'model':...}

    property name*any

    Decorator arguments, e.g. {'ref':...} or {'model':...}

  • ]
  • ref object

    Referenced resource name — an agent or pipeline for agent/workflow types, the MCP server connector for type='mcp'

    하나 이상(anyOf)
    string
    is_builtinIs Builtin (boolean)

    Whether this is a built-in tool

    기본값: false
    require_browserRequire Browser (boolean)

    Whether this tool needs a browser sidecar at agent deploy

    기본값: false
    examples object[]

    Worked call examples surfaced to the LLM as few-shot guidance

  • Array [
  • description object
    하나 이상(anyOf)
    string
    arguments object필수
    property name*any
  • ]
  • options object
    하나 이상(anyOf)
    object
    ToolCreate
    {
    "name": "string",
    "alias": "string",
    "description": "string",
    "type": "python",
    "collection_id": "string",
    "folder_id": "string",
    "tags": [
    "string"
    ],
    "function": {
    "source": "string",
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "decorators": [
    {
    "decorator": "string",
    "name": "string",
    "arguments": {}
    }
    ]
    },
    "ref": "string",
    "is_builtin": false,
    "require_browser": false,
    "examples": [
    {
    "description": "string",
    "arguments": {}
    }
    ],
    "options": {}
    }