tools
Create Tool
Create a new tool
POST
/
v1
/
tools
/
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
update
boolean
default: falseBody
application/json
description
string | null
The description of the tool.
source_type
string | null
The type of the source code.
module
string | null
The module of the function.
user_id
string | null
The unique identifier of the user associated with the function.
name
string | null
The name of the function (auto-generated from source_code if not provided).
tags
string[]
requiredMetadata tags.
source_code
string
requiredThe source code of the function.
json_schema
object | null
The JSON schema of the function (auto-generated from source_code if not provided)
Response
200 - application/json
description
string | null
The description of the tool.
source_type
string | null
The type of the source code.
module
string | null
The module of the function.
user_id
string | null
The unique identifier of the user associated with the function.
id
string
The human-friendly ID of the Tool
name
string
requiredThe name of the function.
tags
string[]
requiredMetadata tags.
source_code
string
requiredThe source code of the function.
json_schema
object
The JSON schema of the function.