Upsert Tool
Create or update a tool
Headers
Authorization
Header authentication of the form Bearer <token>
Request
This endpoint expects an object.
source_code
The source code of the function.
description
The description of the tool.
source_type
The source type of the function.
json_schema
The JSON schema of the function (auto-generated from source_code if not provided)
args_json_schema
The args JSON schema of the function.
return_char_limit
The maximum number of characters in the response.
pip_requirements
Optional list of pip packages required by this tool.
Response
Successful Response
id
The human-friendly ID of the Tool
tool_type
The type of the tool.
description
The description of the tool.
source_type
The type of the source code.
name
The name of the function.
source_code
The source code of the function.
json_schema
The JSON schema of the function.
args_json_schema
The args JSON schema of the function.
return_char_limit
The maximum number of characters in the response.
pip_requirements
Optional list of pip packages required by this tool.
created_by_id
The id of the user that made this Tool.
last_updated_by_id
The id of the user that made this Tool.
metadata_
A dictionary of additional metadata for the tool.