View as Markdown
Grain icon

Grain ACTION

Update Recording

Renames a recording and/or adds and removes tags on it. All fields are optional — pass only what you want to change. Use List Recordings first to find the recording's ID. Example: to retitle a recording and tag it, pass title and addTags: ["qa-verified"] together. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Grain account once, then configure and run Update Recording 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: "grain-update-recording",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    grain: { authProvisionId: "apn_xxxxxxx" },
    recordingId: "Recording ID",
    title: "Title",
  },
})

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.

Update Recording inputs
Property Type Description
recordingId Recording ID string
The ID of the recording to fetch. Use List Recordings to find recording IDs.
Required
title Title string
New title for the recording. Leave blank to keep the current title.
Optional
addTags Add Tags string[]
Tags to add to the recording. Example: ["qa-verified", "customer-call"].
Optional
removeTags Remove Tags string[]
Tags to remove from the recording.
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
grain-update-recording
Version
0.0.1
App
Grain
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes