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
}
'