Create Tool
Create a new tool
Request body
The description of the tool.
Metadata tags.
The source code of the function.
The source type of the function.
The JSON schema of the function (auto-generated from source_code if not provided)
The args JSON schema of the function.
The maximum number of characters in the response.
Whether or not to require approval before executing this tool.
Response
Successful Response
The human-friendly ID of the Tool
The description of the tool.
The type of the source code.
The name of the function.
Metadata tags.
The source code of the function.
The JSON schema of the function.
The args JSON schema of the function.
The maximum number of characters in the response.
Default value for whether or not executing this tool requires approval.
The id of the user that made this Tool.
The id of the user that made this Tool.
A dictionary of additional metadata for the tool.
Example response
{
"id": "tool-123e4567-e89b-12d3-a456-426614174000"
}