POST
/
tools
/
create-from-template
curl --request POST \
  --url http://localhost/api/v1/tools/create-from-template \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "name": "<string>",
    "description": "<string>",
    "category": "<string>",
    "version": "<string>",
    "spec": {
      "name": "<string>",
      "display_name": "<string>",
      "description": "<string>",
      "permission": "read_only",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [
          "<string>"
        ]
      },
      "output_schema": {
        "type": "object",
        "description": "<string>",
        "properties": {},
        "required": [
          "<string>"
        ]
      },
      "binding": {
        "openapi": {
          "http_method": "GET",
          "http_path": "<string>",
          "security": [],
          "servers": [],
          "connection_id": "<string>"
        },
        "python": {
          "function": "<string>",
          "requirements": [
            "<string>"
          ],
          "connections": {}
        },
        "wxflows": {
          "endpoint": "<string>",
          "flow_name": "<string>",
          "security": []
        },
        "skill": {
          "skillset_id": "<string>",
          "skill_id": "<string>",
          "skill_operation_path": "<string>",
          "http_method": "GET"
        },
        "client_side": {},
        "rag": {
          "vector_id": "<string>"
        },
        "conversational_search": {
          "conversational_search_config": {},
          "connections": [
            "<any>"
          ],
          "version": "0.0.1"
        },
        "mcp": {
          "server_url": "<string>",
          "source": "public-registry",
          "env": {},
          "command": "<string>",
          "args": [
            "<string>"
          ],
          "connections": {}
        }
      }
    },
    "attachments": [
      "<any>"
    ]
  }
]'
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

parent_agent_id

Body

application/json · CreateToolFromTemplate · object[]

The body is of type CreateToolFromTemplate · object[].

Response

200
application/json

Successful Response

The response is of type any.