reactionsAdd
Adds a reaction to an item.
Details
- Method:
POST - Path:
/reactions.add - Operation ID:
reactions_add
Parameters
{
"channel": {
"description": "Channel where the message to add reaction to was posted.",
"required": true,
"location": "formData",
"type": "string"
},
"name": {
"description": "Reaction (emoji) name.",
"required": true,
"location": "formData",
"type": "string"
},
"timestamp": {
"description": "Timestamp of the message to add reaction to.",
"required": true,
"location": "formData",
"type": "string"
},
"token": {
"description": "Authentication token. Requires scope: `reactions:write`",
"required": true,
"location": "header",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Schema for successful response from reactions.add method",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
}
},
"required": [
"ok"
],
"title": "reactions.add schema",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('reactionsAdd', {
# Add required parameters here
})