trello · git:20260814.3cca60d · 2026-08-14 · sha256 bc2b7d16eb3e35bf

trello git:20260814.3cca60dA

Immutable. This exact content is served forever at /api/v1/blob/bc2b7d16eb3e35bf.

---
name: trello
description: Agent-callable Trello tools — create and update cards, manage boards, lists, labels, checklists, and search. Use when the user mentions Trello or wants to create cards, move tasks, or manage boards, even if they do not name Trello explicitly.
license: Elastic-2.0
compatibility: Run `npm install --omit=dev` in this directory, then `node cli.js`. The TypeScript source needs Node.js 22.18+; on older Node, run `cli.js` for build-it-yourself / prebuilt / alternative-runtime options.
metadata:
  title: Trello
  source: https://github.com/zapier/connectors/blob/main/apps/trello/SKILL.md
  api-docs: https://developer.atlassian.com/cloud/trello/rest/
  zapier-app-key: TrelloAPI
---

# Trello

<!-- BEGIN:skill-intro -->

Scripts for working with Trello against the [Trello REST API](https://developer.atlassian.com/cloud/trello/rest/) (`https://api.trello.com/1`): create and move cards, manage boards and lists, labels and checklists, comments and attachments, member lookups, and search. 44 scripts across boards, lists, cards, labels, checklists, members, and search.

<!-- legal:disclaimer -->

_Independent, unofficial connector for Trello. Not affiliated with, endorsed by, or sponsored by Trello. "Trello" is a trademark of its owner, used only to identify the service this connector works with._
<!-- /legal:disclaimer -->
<!-- END:skill-intro -->

## When to use this

<!-- BEGIN:skill-use-cases -->

- An agent needs to **create or update cards** — add tasks, set due dates, assign members, add labels, or archive/reopen cards.
- An agent needs to **organize boards** — create boards and lists, move cards between lists, copy boards, or close (archive) boards.
- An agent needs to **look up Trello resources by name** — find boards, lists, labels, or checklists before writing.
- An agent needs to **search cards** or read board/list/card detail for planning or reporting.

<!-- END:skill-use-cases -->

## Setup

This is an [agentskills.io](https://agentskills.io) skill.

If the connector has not been installed as a skill yet, install it first with `npx skills add zapier/connectors --skill trello` (or your harness's own skill-install mechanism), then continue here. Installing the skill copies these files, not dependencies. Before running the CLI, a local MCP server, or `zapier-sdk` auth commands, run `npm install --omit=dev` here once. Importing the published package as a dependency in your own project instead? That `npm install` already resolves everything — see [`references/use-as-sdk.md`](references/use-as-sdk.md).

Want the actual repo source instead — to browse `references/`, run this connector's tests, or hack on it? See [`README.md`](README.md#cloning-the-source) for a scoped `git clone`.

The connector runs on **Node.js 22.18+**. Pick the reference that matches how you're running it, and load it before doing anything else:

| You have...                                                                                                                                                 | Load                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| An MCP-aware client — tools may already be loaded (e.g. `mcp__trello__<tool>`), or you can register a local server yourself (or guide the user to)          | [`references/use-as-mcp.md`](references/use-as-mcp.md)       |
| Terminal / subprocess access (you can run `node`)                                                                                                           | [`references/use-as-cli.md`](references/use-as-cli.md)       |
| Only your own code, importing this package as a dependency                                                                                                  | [`references/use-as-sdk.md`](references/use-as-sdk.md)       |
| No tool access, no terminal, no ability to import this package — you write your own code that calls the Trello API directly (e.g. a code-execution sandbox) | [`references/use-as-recipe.md`](references/use-as-recipe.md) |

## Scripts

<!-- BEGIN:skill-connections-note? -->

All scripts use the single connection `trello`. Shared helpers live in [`lib/trello.ts`](lib/trello.ts).
<!-- END:skill-connections-note -->

<!-- BEGIN:skill-scripts-table -->

| Script                                                                   | Script name              | Connections       | Description                                                            |
| ------------------------------------------------------------------------ | ------------------------ | ----------------- | ---------------------------------------------------------------------- |
| [`scripts/createBoard.ts`](scripts/createBoard.ts)                       | `createBoard`            | Single (`trello`) | Create a new board in a workspace                                      |
| [`scripts/copyBoard.ts`](scripts/copyBoard.ts)                           | `copyBoard`              | Single (`trello`) | Copy a board, optionally keeping cards                                 |
| [`scripts/closeBoard.ts`](scripts/closeBoard.ts)                         | `closeBoard`             | Single (`trello`) | Archive (close) a board                                                |
| [`scripts/getBoard.ts`](scripts/getBoard.ts)                             | `getBoard`               | Single (`trello`) | Get a board by id                                                      |
| [`scripts/listBoards.ts`](scripts/listBoards.ts)                         | `listBoards`             | Single (`trello`) | List boards the authenticated member can access                        |
| [`scripts/findBoard.ts`](scripts/findBoard.ts)                           | `findBoard`              | Single (`trello`) | Find boards by name                                                    |
| [`scripts/listBoardMembers.ts`](scripts/listBoardMembers.ts)             | `listBoardMembers`       | Single (`trello`) | List members of a board                                                |
| [`scripts/addMemberToBoard.ts`](scripts/addMemberToBoard.ts)             | `addMemberToBoard`       | Single (`trello`) | Add a member to a board by id or email                                 |
| [`scripts/createList.ts`](scripts/createList.ts)                         | `createList`             | Single (`trello`) | Create a list on a board                                               |
| [`scripts/getList.ts`](scripts/getList.ts)                               | `getList`                | Single (`trello`) | Get a list by id                                                       |
| [`scripts/listLists.ts`](scripts/listLists.ts)                           | `listLists`              | Single (`trello`) | List all lists on a board                                              |
| [`scripts/findList.ts`](scripts/findList.ts)                             | `findList`               | Single (`trello`) | Find lists on a board by name                                          |
| [`scripts/createCard.ts`](scripts/createCard.ts)                         | `createCard`             | Single (`trello`) | Create a card on a list with optional members, labels, and attachments |
| [`scripts/updateCard.ts`](scripts/updateCard.ts)                         | `updateCard`             | Single (`trello`) | Update card fields (name, description, due, cover, list)               |
| [`scripts/archiveCard.ts`](scripts/archiveCard.ts)                       | `archiveCard`            | Single (`trello`) | Archive (close) a card                                                 |
| [`scripts/moveCard.ts`](scripts/moveCard.ts)                             | `moveCard`               | Single (`trello`) | Move a card to another list or board                                   |
| [`scripts/getCard.ts`](scripts/getCard.ts)                               | `getCard`                | Single (`trello`) | Get a card by id                                                       |
| [`scripts/listCards.ts`](scripts/listCards.ts)                           | `listCards`              | Single (`trello`) | List cards on a board with optional filters                            |
| [`scripts/searchCards.ts`](scripts/searchCards.ts)                       | `searchCards`            | Single (`trello`) | Search cards using Trello query DSL or structured filters              |
| [`scripts/createComment.ts`](scripts/createComment.ts)                   | `createComment`          | Single (`trello`) | Add a comment to a card                                                |
| [`scripts/getAction.ts`](scripts/getAction.ts)                           | `getAction`              | Single (`trello`) | Get an action (activity) by id                                         |
| [`scripts/listCardAttachments.ts`](scripts/listCardAttachments.ts)       | `listCardAttachments`    | Single (`trello`) | List attachments on a card                                             |
| [`scripts/addCardAttachment.ts`](scripts/addCardAttachment.ts)           | `addCardAttachment`      | Single (`trello`) | Add a URL attachment or link a remote file to a card                   |
| [`scripts/createLabel.ts`](scripts/createLabel.ts)                       | `createLabel`            | Single (`trello`) | Create a label on a board                                              |
| [`scripts/getLabel.ts`](scripts/getLabel.ts)                             | `getLabel`               | Single (`trello`) | Get a label by id                                                      |
| [`scripts/listLabels.ts`](scripts/listLabels.ts)                         | `listLabels`             | Single (`trello`) | List labels on a board                                                 |
| [`scripts/findLabel.ts`](scripts/findLabel.ts)                           | `findLabel`              | Single (`trello`) | Find labels on a board by name                                         |
| [`scripts/addCardLabel.ts`](scripts/addCardLabel.ts)                     | `addCardLabel`           | Single (`trello`) | Add an existing label to a card                                        |
| [`scripts/removeCardLabel.ts`](scripts/removeCardLabel.ts)               | `removeCardLabel`        | Single (`trello`) | Remove a label from a card                                             |
| [`scripts/createChecklist.ts`](scripts/createChecklist.ts)               | `createChecklist`        | Single (`trello`) | Create a checklist on a card                                           |
| [`scripts/getChecklist.ts`](scripts/getChecklist.ts)                     | `getChecklist`           | Single (`trello`) | Get a checklist by id                                                  |
| [`scripts/deleteChecklist.ts`](scripts/deleteChecklist.ts)               | `deleteChecklist`        | Single (`trello`) | Delete a checklist                                                     |
| [`scripts/findChecklist.ts`](scripts/findChecklist.ts)                   | `findChecklist`          | Single (`trello`) | Find checklists on a card by name                                      |
| [`scripts/addChecklistItem.ts`](scripts/addChecklistItem.ts)             | `addChecklistItem`       | Single (`trello`) | Add an item to a checklist                                             |
| [`scripts/getChecklistItem.ts`](scripts/getChecklistItem.ts)             | `getChecklistItem`       | Single (`trello`) | Get a checklist item by id                                             |
| [`scripts/findChecklistItem.ts`](scripts/findChecklistItem.ts)           | `findChecklistItem`      | Single (`trello`) | Find checklist items by name                                           |
| [`scripts/completeChecklistItem.ts`](scripts/completeChecklistItem.ts)   | `completeChecklistItem`  | Single (`trello`) | Mark a checklist item complete or incomplete                           |
| [`scripts/getCurrentMember.ts`](scripts/getCurrentMember.ts)             | `getCurrentMember`       | Single (`trello`) | Get the authenticated member                                           |
| [`scripts/getMember.ts`](scripts/getMember.ts)                           | `getMember`              | Single (`trello`) | Get a member by id                                                     |
| [`scripts/findOrganizationMember.ts`](scripts/findOrganizationMember.ts) | `findOrganizationMember` | Single (`trello`) | Find members in a workspace                                            |
| [`scripts/getOrganization.ts`](scripts/getOrganization.ts)               | `getOrganization`        | Single (`trello`) | Get a workspace by id                                                  |
| [`scripts/listOrganizations.ts`](scripts/listOrganizations.ts)           | `listOrganizations`      | Single (`trello`) | List workspaces the member belongs to                                  |
| [`scripts/addCardMember.ts`](scripts/addCardMember.ts)                   | `addCardMember`          | Single (`trello`) | Add a member to a card                                                 |
| [`scripts/listCustomFields.ts`](scripts/listCustomFields.ts)             | `listCustomFields`       | Single (`trello`) | List custom field definitions on a board                               |

**Resolve ids before writes.** Trello ids are 24-character hex strings. When the user names a board, list, or label, call the matching `find*` or `list*` script first and pass the returned id into create/update/move scripts — never guess ids.
<!-- END:skill-scripts-table -->

<!-- BEGIN:disambiguation-and-refusals? -->

## Disambiguation & refusals

**Disambiguation before a write.** Before writing to a board, list, card, label, or checklist you looked up by name (e.g. create a card on a list found via `findList`, or add a label found via `findLabel`), count the **exact case-insensitive name matches**:

- **Exactly one match** — act on it. Don't over-ask; a single unambiguous match is the answer.
- **Two or more that tie** — stop. List the tied candidates with a distinguishing field (id + name + board/list context) and ask the user which one they mean. Don't pick arbitrarily and don't write to all of them.

**Unsupported operations — say so and stop; don't fake it with another script.** This catalog deliberately does not:

- **Manage webhooks, automations, or Power-Ups.** There are no trigger or Butler-rule scripts.
- **Upload local binary files.** `addCardAttachment` accepts a URL or remote file URL only — not a local path or base64 payload.
- **Permanently delete boards or cards.** `closeBoard` and `archiveCard` archive (soft-close) resources; there is no hard-delete script.
- **Manage workspace billing, admin settings, or enterprise policies.**

If asked for any of these, tell the user it's unsupported and stop — don't reach for an unrelated script to approximate it.
<!-- END:disambiguation-and-refusals -->

## Auth

Every shape passes auth as one connection **selector**, not the secret — a `[<resolver>:]<value>` string. Every connector accepts `zapier:<connection-id>` (Zapier-managed auth — routes through Zapier's auth, retries, and governance layer); some also accept one or more direct-token resolvers (naming and count vary per connector) — check this connector's own resolvers rather than assuming. The `<resolver>:` prefix is optional; a bare value goes to the first resolver that claims it — a UUID-shaped bare value always claims `zapier:`. Each script declares the connections it needs and the resolvers each accepts. The exact syntax for passing a connection (and how to see this connector's resolver list) differs by shape — see the reference you loaded above.

Checking what's already configured first? Don't dump environment values to do it — `env` or `env | grep <name>` prints the value along with the name, leaking a live credential into the transcript if one is set. Check names only (`env | cut -d= -f1 | grep -i <name>`) or test a known name directly (`[ -n "$VAR_NAME" ]`).

<!-- BEGIN:skill-auth-notes? operational behavior that differs by WHICH resolver is used — a safety gate only one path enforces, scopes/permissions that differ between resolvers, a billing/plan difference tied to the auth path, or a feature only available (or unavailable) on one resolver. Not for describing how to obtain or pass a credential — that's references/use-without-zapier.md's job. Leave this region empty (unfilled) if every resolver behaves identically. -->
<!-- END:skill-auth-notes -->

No connection yet? Pick one — and follow the reference's own flow to obtain it; never just ask the user for a connection id or token as if they already have one memorized:

|                                      | Load                                                                   |
| ------------------------------------ | ---------------------------------------------------------------------- |
| Pass the credential directly         | [`references/use-without-zapier.md`](references/use-without-zapier.md) |
| Route it through a Zapier connection | [`references/use-with-zapier.md`](references/use-with-zapier.md)       |

## Output format

Every script returns a `{ data, meta }` envelope:

- **`data`** — the script's result (the shape its `outputSchema` declares; see the reference you loaded above for how to inspect a script's exact schema in your shape).
- **`meta.outputDataValidation`** — what validating `data` did:
  - `{ skipped: false, droppedPaths: null }` — validated, nothing removed.
  - `{ skipped: false, droppedPaths: [...], instruction }` — validated, but those paths were stripped from `data`: fields the script returned from the API that the `outputSchema` doesn't declare. If you need them, re-run with output validation skipped.
  - `{ skipped: true }` — validation was bypassed; `data` is the raw, unchecked script output.

**Reading dropped fields / `skipOutputDataValidation`.** To receive the raw, unvalidated result, opt out of output validation (the exact syntax differs by shape — see the reference you loaded above). Input validation is never skipped.

**Trimming the result / `filterOutputData`.** To shrink a large result down to the fields you need, pass a jq expression that post-processes `data` (again, exact syntax per shape). The jq runs against `data` only, NOT the `{ data, meta }` envelope, so write it rooted at `data` (run the script's `--help` — or your shape's equivalent — to see its output schema). The transformed value replaces `data`, `meta` is preserved, and the result is NOT re-validated against the output schema.

<!-- BEGIN:skill-references-table -->

## References

Load the matching reference file before working in that area:

| Reference                                                            | Covers                                                                          | Load it when                                                                                                         |
| -------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [references/trello-api-gotchas.md](references/trello-api-gotchas.md) | Trello API behavior, id resolution patterns, rate limits, and search DSL quirks | Before search-heavy flows, rate-limit-sensitive loops, or any write that needs id resolution (lists, boards, labels) |

<!-- END:skill-references-table -->