View as Markdown
Linear icon

Linear ACTION

Get Document

Fetch a single Linear document by its UUID or slugId and return the full markdown content plus metadata. Use when you need to read, show, or display the full contents of a document — Search Documents does not return the content field. Workflow: first call Search Documents to find the document id or slugId, then call this tool with that identifier. Provide the document UUID (e.g. a1b2c3d4-0000-0000-0000-000000000001) or slugId (the short code at the end of the document URL, e.g. 10b5bc2940c7). The optional fields prop narrows the response to only the keys you need. Example: documentId: "10b5bc2940c7" → returns {id: "29a25062-...", title: "Q3 Hiring Plan", content: "# Q3 Hiring Plan\n\nWe are looking for...", url: "https://linear.app/.../document/q3-hiring-plan-10b5bc2940c7"}. See the documentation.
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Linear account once, then configure and run Get Document 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-get-document",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    linear: { authProvisionId: "apn_xxxxxxx" },
    documentId: "Document ID",
    fields: ["Fields"],
  },
})

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.

Get Document inputs
Property Type Description
documentId Document ID string
The UUID or slugId of the document. A UUID looks like a1b2c3d4-0000-0000-0000-000000000001; a slugId is the short alphanumeric code at the end of the document URL (e.g. 10b5bc2940c7). Use Search Documents to find document IDs.
Required
fields Fields string[]
Optional list of field names to include in the returned document object. When omitted, the full document payload is returned (id, title, slugId, url, content, icon, color, createdAt, updatedAt, archivedAt, documentContentId, project, initiative, creator). Pass a subset to reduce response size, e.g. ["id", "title", "content"].
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-get-document
Version
0.0.1
App
Linear
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes