Skip to main content
POST
/
ext
/
tool
Create a new Tool details
curl --request POST \
  --url https://api.trugen.ai/v1/ext/tool \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "type": "tool.api",
  "schema": {
    "type": "function",
    "name": "start_cloud_browser_session",
    "description": "Starts the dashboard page with logged in session.",
    "parameters": {
      "type": "object",
      "properties": {},
      "required": [
        "<string>"
      ]
    }
  },
  "request_config": {
    "method": "GET",
    "url": "https://www.example.com/information",
    "headers": {}
  },
  "event_messages": {
    "on_start": {
      "message": "<string>"
    },
    "on_success": {
      "message": "<string>"
    },
    "on_delay": {
      "delay": 123,
      "message": "<string>"
    },
    "on_error": {
      "message": "<string>"
    }
  }
}
'

Authorizations

x-api-key
string
header
required

Body

application/json
type
string
required
Example:

"tool.api"

schema
object
required
request_config
object
required
event_messages
object
required

Response

Tool details created successfully