chatGetPermalink
Retrieve a permalink URL for a specific extant message
Details
- Method:
GET - Path:
/chat.getPermalink - Operation ID:
chat_getPermalink
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `none`",
"required": true,
"location": "query",
"type": "string"
},
"channel": {
"description": "The ID of the conversation or channel containing the message",
"required": true,
"location": "query",
"type": "string"
},
"message_ts": {
"description": "A message's `ts` value, uniquely identifying it within a channel",
"required": true,
"location": "query",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Schema for successful response chat.getPermalink",
"properties": {
"channel": {
"pattern": "^[CGD][A-Z0-9]{8,}$",
"title": "Channel-like conversation ID",
"type": "string"
},
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
},
"permalink": {
"format": "uri",
"type": "string"
}
},
"required": [
"ok",
"channel",
"permalink"
],
"title": "chat.getPermalink success schema",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('chatGetPermalink', {
# Add required parameters here
})