message_send
Send a Mattermost message to a direct message, channel, or the current conversation after approval. attachments uploads workspace files, such as an inbound image original, with the message. `external_send` · approval · v3
Authorization
memberToken Tokens
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
text/plain
text/plain
text/plain
text/plain
curl -X POST "https://example.com/tools/message_send/invoke" \ -H "Content-Type: application/json" \ -d '{ "input": { "message": "string", "targetType": "directMessage" } }'{ "toolName": "string", "status": "string", "content": "string", "isError": true, "message": "string", "errorCode": "string", "retryable": true, "result": null}message_search POST
Find messages in an exact conversation scope, or read known ones in full. Searching by queries returns message IDs with a short preview around the match. Passing messageIDs instead returns those messages complete, which is what you need before rewriting or summarising a long message rather than a phrase inside it. `read` · v2
message_update POST
Replace one exact span of text inside your own earlier Mattermost message, leaving the rest of it untouched. oldText must appear exactly once in that message; copy it verbatim from a message_search preview or from the message you sent. This is the tool for every correction to something you already posted — when the user points out a mistake, fix that message instead of posting a correction as a new one. It runs immediately without asking the user to confirm, because it can only change text you quoted. If oldText does not match, the call fails without changing anything and returns the message as it currently reads, so retry with a span copied from that. To rewrite a long message wholesale, read it in full first with message_search messageIDs and quote what you read. `external_write` · v2