View as Markdown
Gong icon

Gong ACTION

List Library Folders

List the public folders in the Gong call library and return an array. The library is where teams curate calls into collections such as "Win/Loss" or "Onboarding", so this is the way to find calls a human has already picked out rather than searching the whole call history. Folders nest: a folder with a parentFolderId of null is a root folder. Pass a folder's id to List Calls In Library Folder to get its calls. Private and archived folders are never returned. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Gong account once, then configure and run List Library Folders 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: "gong-list-library-folders",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    gong: { authProvisionId: "apn_xxxxxxx" },
    workspaceId: "Workspace ID",
  },
})

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 Library Folders inputs
Property Type Description
workspaceId Workspace ID string
The workspace whose library folders to list, as a Gong workspace ID (e.g. 5877789441548580962). Use the List Workspace ID Options action to discover workspace IDs.
Required Dynamic

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
gong-list-library-folders
Version
0.0.1
App
Gong
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes