View as Markdown
Linear (API key) icon

Linear (API key) ACTION

List Project Labels

List available project labels in the Linear workspace. Use this to discover valid label IDs when creating or updating projects. Returns {nodes, pageInfo}, where each node includes id, name, and optional color. If pageInfo.hasNextPage is true, call again with after set to pageInfo.endCursor to fetch more. Example: returns {nodes: [{id: "9a1b2c3d-0000-0000-0000-000000000007", name: "Frontend", color: "#0ea5e9"}], pageInfo: {endCursor: "9a1b2c3d-0000-0000-0000-000000000007", hasNextPage: false}}. See the documentation.
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Linear (API key) account once, then configure and run List Project Labels 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-list-project-labels",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    linear_app: { authProvisionId: "apn_xxxxxxx" },
    first: 10,
    after: "After",
  },
})

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.

List Project Labels inputs
Property Type Description
first First integer
Maximum number of records to return (min 1, max 100). Example: 10.
Optional
after After string
Pagination cursor from a previous response's pageInfo.endCursor to fetch the next page. Example: 4919b279-3121-4609-880e-a70c11deca5a.
Optional
fields Fields string[]
Optional list of field names to include in each returned project label object. When omitted, the full payload is returned. Pass a subset to reduce response size, e.g. ["id", "name", "color"].
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
linear_app-list-project-labels
Version
0.0.1
App
Linear (API key)
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes