View as Markdown
Mattermost icon

Mattermost ACTION

Post Message

Create a new post in a channel See docs here
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mattermost account once, then configure and run Post Message from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mattermost-post-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mattermost: { authProvisionId: "apn_xxxxxxx" },
    channelId: "Channel",
    message: "Message",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Post Message inputs
Property Type Description
channelId Channel string
The channel to post in.
Required Dynamic
message Message string
The message contents, can be formatted with Markdown.
Required
rootId Root ID string
The post ID to comment on. You can use the ID of a previously created post, or get it by copying the link to a post on Mattermost's interface.
Optional
fileIds File IDs string[]
A list of file IDs to associate with the post. Note that posts are limited to 5 files maximum. Please use additional posts for more files.
Optional
postProps Props object
A general JSON property bag to attach to the post.
Optional
setOnline Set Online boolean
Whether to set the user status as online or not.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
mattermost-post-message
Version
0.0.5
App
Mattermost
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes