Open Context Protocol is live! 🚀 Read the launch post

reactionsRemove

Removes a reaction from an item.

Details

  • Method: POST
  • Path: /reactions.remove
  • Operation ID: reactions_remove

Parameters

{
  "token": {
    "description": "Authentication token. Requires scope: `reactions:write`",
    "required": true,
    "location": "header",
    "type": "string"
  },
  "name": {
    "description": "Reaction (emoji) name.",
    "required": true,
    "location": "formData",
    "type": "string"
  },
  "file": {
    "description": "File to remove reaction from.",
    "required": false,
    "location": "formData",
    "type": "string"
  },
  "file_comment": {
    "description": "File comment to remove reaction from.",
    "required": false,
    "location": "formData",
    "type": "string"
  },
  "channel": {
    "description": "Channel where the message to remove reaction from was posted.",
    "required": false,
    "location": "formData",
    "type": "string"
  },
  "timestamp": {
    "description": "Timestamp of the message to remove reaction from.",
    "required": false,
    "location": "formData",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "Schema for successful response from reactions.remove method",
  "properties": {
    "ok": {
      "enum": [
        true
      ],
      "title": "default success response",
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ],
  "title": "reactions.remove schema",
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('slack')

# Call this tool
result = await agent.call_tool('reactionsRemove', {
    # Add required parameters here
})