View as Markdown
Linear (API key) icon

Linear (API key) ACTION

Create Comment

Add a comment to a Linear issue. Use Search Issues to find the target issue ID first. Returns the new comment's ID and body. Example: issueId: "iss_01abc", body: "Fixed in PR #123." → returns {success: true, comment: {id: "cmt_xyz", body: "Fixed in PR #123."}}. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Linear (API key) account once, then configure and run Create Comment 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: "linear_app-create-comment",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    linear_app: { authProvisionId: "apn_xxxxxxx" },
    issueId: "Issue",
    body: "Body",
  },
})

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.

Create Comment inputs
Property Type Description
issueId Issue string
The issue to create the comment on (a UUID, e.g. 7df5e7f9-a357-4539-ae94-4a004fec635f). Use Search Issues to find issues and retrieve their IDs.
Required
body Body string
The content of the comment in markdown format. Example: Fixed in PR #123. Let me know if you need any further changes.
Required

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
linear_app-create-comment
Version
1.0.0
App
Linear (API key)
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes