Modify Tool

PATCH
/v1/tools/:tool_id

Update an existing tool

Path parameters

tool_idstringRequired

Request

This endpoint expects an object.
descriptionstringOptional

The description of the tool.

tagslist of stringsOptional

Metadata tags.

source_codestringOptional

The source code of the function.

source_typestringOptional

The type of the source code.

json_schemamap from strings to anyOptional

The JSON schema of the function (auto-generated from source_code if not provided)

return_char_limitintegerOptional

The maximum number of characters in the response.

Response

Successful Response

idstringOptionalformat: "^tool-[a-fA-F0-9]{8}"

The human-friendly ID of the Tool

tool_typeenumOptional
Allowed values: customletta_coreletta_memory_coreletta_multi_agent_coreexternal_composio

The type of the tool.

descriptionstringOptional

The description of the tool.

source_typestringOptional

The type of the source code.

namestringOptional

The name of the function.

tagslist of stringsOptional

Metadata tags.

source_codestringOptional

The source code of the function.

json_schemamap from strings to anyOptional

The JSON schema of the function.

return_char_limitintegerOptionalDefaults to 6000

The maximum number of characters in the response.

created_by_idstringOptional

The id of the user that made this Tool.

last_updated_by_idstringOptional

The id of the user that made this Tool.

Errors

Built with