Skip to main content
PUT
/
ext
/
tool
/
{id}
Update Tool details
curl --request PUT \
  --url https://api.trugen.ai/v1/ext/tool/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "type": "tool.client",
  "schema": {
    "type": "function",
    "name": "start_cloud_browser_session1",
    "description": "Starts the dashboard page with logged in session1.",
    "parameters": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "URL to navigate to"
        }
      },
      "required": [
        "url"
      ]
    }
  },
  "request_config": {
    "method": "GET",
    "url": "https://www.example.com/information",
    "headers": {
      "User-Agent": "Trugen Avatar",
      "Accept": "application/json"
    }
  },
  "event_messages": {
    "on_start": {
      "message": "Getting stock price data..."
    },
    "on_success": {
      "message": "Successfully received data."
    },
    "on_delay": {
      "delay": 1,
      "message": "Waiting for stock price data..."
    },
    "on_error": {
      "message": "Failed to retrieve stock price data"
    }
  },
  "is_active": true
}
'

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

The UUID of the tool to update

Example:

"611eaabb-0884-440f-a4f1-a04b9ad8a597"

Body

application/json
type
string
required
Example:

"tool.client"

schema
object
required

Client-side function schema

request_config
object
required
event_messages
object
required
is_active
boolean
required
Example:

true

Response

Tool details updated successfully