Agent
Add Tool to Agent
POST
/
api
/
v1
/
agents
/
:agent_id
/
tools
This endpoint associates a tool with a specific agent.
HTTP Request
POST https://api.gptlab.cloud/api/v1/agents/:agent_id/tools
Path Parameters
agent_id
: The ID of the agent to which the tool will be added.
Headers
- Content-Type: application/json
- Authorization: Bearer
<token>
Request Body The request body should include:
- toolId: String (required) - The ID of the tool to be added to the agent.
Response The response will return a JSON object indicating the success of the operation and details of the tool added to the agent.