curl --request PATCH \
--url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/agents/{agentUid}/tools/{slug}/actions/add \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"actions": [
"send-email",
"draft-email",
"read-emails"
],
"authMeta": [
"emailId: \"example@cometchat.com\""
]
}
'