Agents

Updates a custom agent tool

Updates a custom agent tool given a tool id belonging to the user. Two request body forms are accepted:

  • multipart/form-data — required to upload a file; also accepted for metadata-only updates (just send tool_args). This is the default content type the generated SDK clients use.
  • application/json — legacy metadata-only body ({ "tool_args": ... }) retained for backward compatibility with clients written before file upload was supported. JSON bodies cannot carry a file upload.
put/agents/custom_tools/{tool_id}

Request

Path parameters

tool_idstring required

The unique identifier of the tool to be updated.

Request body

tool_argsobject required

The new arguments for the custom agent tool

Response

Successful operation

agent_custom_tool_idstring

The ID of the updated custom agent tool

Changes

No recorded changes to this operation across all 1 revision of this API.