Skip to content

Documentation

Action reference

These actions are shared by the HTTP API, CLI, and MCP server.

All actions require authentication and work on every plan, except webhooks, which need Pro. A read-only token can call only read-only actions. Workspace permissions still apply. Start with the HTTP, CLI, or MCP setup guide.

Replace the YOUR_… IDs in examples with IDs from your workspace. HTTP examples use a personal access token in PLUTO_TOKEN; CLI examples assume you've signed in with pluto login.

workspaces.list

Lists the cloud workspaces you can open, oldest first: your teams' workspaces and the ones other people shared with you. Each says what you can do with it (access: owner, edit, comment or view) and which team it belongs to.

Read-only

  • HTTP: POST /api/v1/workspaces.list
  • CLI: pluto workspaces list
  • MCP: workspaces_list

CLI flags: No action-specific flags. Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "not": {
      "type": "null"
    }
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaces": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/WorkspaceEncoded"
        }
      }
    },
    "required": [
      "workspaces"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "WorkspaceEncoded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "access": {
          "type": "string",
          "enum": [
            "owner",
            "edit",
            "comment",
            "view"
          ]
        },
        "isPublic": {
          "type": "boolean"
        },
        "ownerName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "teamId": {
          "type": "string"
        },
        "teamName": {
          "type": "string"
        },
        "teamAccess": {
          "type": "string",
          "enum": [
            "none",
            "view",
            "comment",
            "edit"
          ]
        },
        "elementLimit": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "access",
        "isPublic",
        "ownerName",
        "teamId",
        "teamName",
        "teamAccess",
        "elementLimit",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[]
Examples
Example format for workspaces.list
curl --fail-with-body https://app.getpluto.co/api/v1/workspaces.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{}'
pluto workspaces list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "workspaces_list",
    "arguments": {}
  }
}

workspaces.get

Gets a workspace's name and when it was created and last changed.

Read-only

  • HTTP: POST /api/v1/workspaces.get
  • CLI: pluto workspaces get
  • MCP: workspaces_get

CLI flags: --workspace-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/WorkspaceEncoded"
  },
  "definitions": {
    "WorkspaceEncoded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "access": {
          "type": "string",
          "enum": [
            "owner",
            "edit",
            "comment",
            "view"
          ]
        },
        "isPublic": {
          "type": "boolean"
        },
        "ownerName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "teamId": {
          "type": "string"
        },
        "teamName": {
          "type": "string"
        },
        "teamAccess": {
          "type": "string",
          "enum": [
            "none",
            "view",
            "comment",
            "edit"
          ]
        },
        "elementLimit": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "access",
        "isPublic",
        "ownerName",
        "teamId",
        "teamName",
        "teamAccess",
        "elementLimit",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for workspaces.get
curl --fail-with-body https://app.getpluto.co/api/v1/workspaces.get \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID"}'
pluto workspaces get --json '{"workspaceId":"YOUR_WORKSPACE_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "workspaces_get",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID"
    }
  }
}

workspaces.create

Makes a new, empty cloud workspace in one of your teams (your own team unless you give teamId; teams_list lists them). Teams on the Free plan can have only one, so check workspaces_list for one to add to first.

Writes data

  • HTTP: POST /api/v1/workspaces.create
  • CLI: pluto workspaces create
  • MCP: workspaces_create

CLI flags: --name --team-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "minLength": 1
      },
      "teamId": {
        "anyOf": [
          {
            "type": "string",
            "description": "The team to make it in, from teams_list. Your own team when left out"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "name"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/WorkspaceEncoded"
  },
  "definitions": {
    "WorkspaceEncoded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "access": {
          "type": "string",
          "enum": [
            "owner",
            "edit",
            "comment",
            "view"
          ]
        },
        "isPublic": {
          "type": "boolean"
        },
        "ownerName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "teamId": {
          "type": "string"
        },
        "teamName": {
          "type": "string"
        },
        "teamAccess": {
          "type": "string",
          "enum": [
            "none",
            "view",
            "comment",
            "edit"
          ]
        },
        "elementLimit": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "access",
        "isPublic",
        "ownerName",
        "teamId",
        "teamName",
        "teamAccess",
        "elementLimit",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/TeamNotFoundEncoded"
    },
    "definitions": {
      "TeamNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TeamNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for workspaces.create
curl --fail-with-body https://app.getpluto.co/api/v1/workspaces.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"name":"My workspace"}'
pluto workspaces create --json '{"name":"My workspace"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "workspaces_create",
    "arguments": {
      "name": "My workspace"
    }
  }
}

workspaces.rename

Renames a workspace.

Writes data

  • HTTP: POST /api/v1/workspaces.rename
  • CLI: pluto workspaces rename
  • MCP: workspaces_rename

CLI flags: --workspace-id --name Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "name": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "workspaceId",
      "name"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/WorkspaceEncoded"
  },
  "definitions": {
    "WorkspaceEncoded": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "access": {
          "type": "string",
          "enum": [
            "owner",
            "edit",
            "comment",
            "view"
          ]
        },
        "isPublic": {
          "type": "boolean"
        },
        "ownerName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "teamId": {
          "type": "string"
        },
        "teamName": {
          "type": "string"
        },
        "teamAccess": {
          "type": "string",
          "enum": [
            "none",
            "view",
            "comment",
            "edit"
          ]
        },
        "elementLimit": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "access",
        "isPublic",
        "ownerName",
        "teamId",
        "teamName",
        "teamAccess",
        "elementLimit",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for workspaces.rename
curl --fail-with-body https://app.getpluto.co/api/v1/workspaces.rename \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","name":"Renamed workspace"}'
pluto workspaces rename --json '{"workspaceId":"YOUR_WORKSPACE_ID","name":"Renamed workspace"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "workspaces_rename",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "name": "Renamed workspace"
    }
  }
}

workspaces.delete

Deletes a workspace and everything in it, for everyone. Only its creator or an admin of its team can. This can't be undone.

Writes data · Destructive: removes data that can't be brought back.

  • HTTP: POST /api/v1/workspaces.delete
  • CLI: pluto workspaces delete
  • MCP: workspaces_delete

CLI flags: --workspace-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "string"
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotWorkspaceOwnerEncoded"
    },
    "definitions": {
      "NotWorkspaceOwnerEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotWorkspaceOwner"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for workspaces.delete
curl --fail-with-body https://app.getpluto.co/api/v1/workspaces.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID"}'
pluto workspaces delete --json '{"workspaceId":"YOUR_WORKSPACE_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "workspaces_delete",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID"
    }
  }
}

workspaces.snapshot

Reads a whole workspace at once: every card, sticky note, text box and connection on a canvas, with each card's own canvas nested under it, down to the bottom. Good for getting the full picture before making changes.

Read-only

  • HTTP: POST /api/v1/workspaces.snapshot
  • CLI: pluto workspaces snapshot
  • MCP: workspaces_snapshot

CLI flags: --workspace-id --canvas-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Start from this canvas instead of the top one"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Objects_"
  },
  "definitions": {
    "Objects_": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "nodes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "card",
                  "note",
                  "text",
                  "frame"
                ]
              },
              "x": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "y": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "w": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "h": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "label": {
                "type": "string"
              },
              "sub": {
                "type": "string"
              },
              "shape": {
                "type": "string",
                "enum": [
                  "rounded",
                  "rectangle",
                  "ellipse",
                  "diamond",
                  "triangle",
                  "hexagon",
                  "parallelogram",
                  "cylinder"
                ]
              },
              "color": {
                "type": "string",
                "enum": [
                  "default",
                  "grey",
                  "red",
                  "orange",
                  "yellow",
                  "green",
                  "teal",
                  "blue",
                  "violet",
                  "pink"
                ]
              },
              "fill": {
                "type": "string",
                "enum": [
                  "solid",
                  "none"
                ]
              },
              "border": {
                "type": "string",
                "enum": [
                  "solid",
                  "dashed",
                  "none"
                ]
              },
              "childCanvasId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pageId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "children": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Objects_"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "properties": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hasCode": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "author": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "referenceTo": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "canvasId": {
                        "type": "string"
                      },
                      "cardId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "canvasId",
                      "cardId"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "kind",
              "x",
              "y",
              "w",
              "h",
              "label",
              "sub",
              "shape",
              "color",
              "fill",
              "border"
            ],
            "additionalProperties": true
          }
        },
        "edges": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "target": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "directed": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "source",
              "target",
              "label",
              "directed"
            ],
            "additionalProperties": true
          }
        }
      },
      "required": [
        "id",
        "nodes",
        "edges"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for workspaces.snapshot
curl --fail-with-body https://app.getpluto.co/api/v1/workspaces.snapshot \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
pluto workspaces snapshot --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "workspaces_snapshot",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root"
    }
  }
}

sharing.get

Shows who a workspace is shared with, what everyone in its team can do with it, and whether it is public. Only the workspace's owners (its creator and its team's admins) can see this.

Read-only

  • HTTP: POST /api/v1/sharing.get
  • CLI: pluto sharing get
  • MCP: sharing_get

CLI flags: --workspace-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string"
      },
      "isPublic": {
        "type": "boolean"
      },
      "owner": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "email",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "members": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "members"
        ],
        "additionalProperties": true
      },
      "teamAccess": {
        "type": "string",
        "enum": [
          "none",
          "view",
          "comment",
          "edit"
        ]
      },
      "guests": {
        "type": "object",
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "count",
          "limit"
        ],
        "additionalProperties": true
      },
      "people": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "enum": [
                "edit",
                "comment",
                "view"
              ]
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guest": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "email",
            "role",
            "name",
            "guest",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workspaceId",
      "isPublic",
      "owner",
      "team",
      "teamAccess",
      "guests",
      "people"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotWorkspaceOwnerEncoded"
    },
    "definitions": {
      "NotWorkspaceOwnerEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotWorkspaceOwner"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for sharing.get
curl --fail-with-body https://app.getpluto.co/api/v1/sharing.get \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID"}'
pluto sharing get --json '{"workspaceId":"YOUR_WORKSPACE_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sharing_get",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID"
    }
  }
}

sharing.add

Shares a workspace with someone by email, letting them edit it, comment on it, or only view it, or changes what someone it is already shared with can do. They get an email with a link the first time. If they have no account, the share applies when they sign up with that email. Someone outside the team who can edit counts as one of the team's guests, which its plan limits. Only the owner can share.

Writes data

  • HTTP: POST /api/v1/sharing.add
  • CLI: pluto sharing add
  • MCP: sharing_add

CLI flags: --workspace-id --email --role Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "email": {
        "type": "string",
        "description": "An email address. They don't need a Pluto account yet."
      },
      "role": {
        "type": "string",
        "enum": [
          "edit",
          "comment",
          "view"
        ],
        "description": "\"edit\" to change it, \"comment\" to read it and comment, or \"view\" to only look"
      }
    },
    "required": [
      "workspaceId",
      "email",
      "role"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string"
      },
      "isPublic": {
        "type": "boolean"
      },
      "owner": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "email",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "members": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "members"
        ],
        "additionalProperties": true
      },
      "teamAccess": {
        "type": "string",
        "enum": [
          "none",
          "view",
          "comment",
          "edit"
        ]
      },
      "guests": {
        "type": "object",
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "count",
          "limit"
        ],
        "additionalProperties": true
      },
      "people": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "enum": [
                "edit",
                "comment",
                "view"
              ]
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guest": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "email",
            "role",
            "name",
            "guest",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workspaceId",
      "isPublic",
      "owner",
      "team",
      "teamAccess",
      "guests",
      "people"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotWorkspaceOwnerEncoded"
    },
    "definitions": {
      "NotWorkspaceOwnerEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotWorkspaceOwner"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for sharing.add
curl --fail-with-body https://app.getpluto.co/api/v1/sharing.add \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","email":"collaborator@example.com","role":"edit"}'
pluto sharing add --json '{"workspaceId":"YOUR_WORKSPACE_ID","email":"collaborator@example.com","role":"edit"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sharing_add",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "email": "collaborator@example.com",
      "role": "edit"
    }
  }
}

sharing.remove

Stops sharing a workspace with someone. Anyone with it open loses access at once. Only the owner can.

Writes data

  • HTTP: POST /api/v1/sharing.remove
  • CLI: pluto sharing remove
  • MCP: sharing_remove

CLI flags: --workspace-id --email Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "email": {
        "type": "string",
        "description": "An email address. They don't need a Pluto account yet."
      }
    },
    "required": [
      "workspaceId",
      "email"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string"
      },
      "isPublic": {
        "type": "boolean"
      },
      "owner": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "email",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "members": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "members"
        ],
        "additionalProperties": true
      },
      "teamAccess": {
        "type": "string",
        "enum": [
          "none",
          "view",
          "comment",
          "edit"
        ]
      },
      "guests": {
        "type": "object",
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "count",
          "limit"
        ],
        "additionalProperties": true
      },
      "people": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "enum": [
                "edit",
                "comment",
                "view"
              ]
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guest": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "email",
            "role",
            "name",
            "guest",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workspaceId",
      "isPublic",
      "owner",
      "team",
      "teamAccess",
      "guests",
      "people"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotWorkspaceOwnerEncoded"
    },
    "definitions": {
      "NotWorkspaceOwnerEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotWorkspaceOwner"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for sharing.remove
curl --fail-with-body https://app.getpluto.co/api/v1/sharing.remove \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","email":"collaborator@example.com"}'
pluto sharing remove --json '{"workspaceId":"YOUR_WORKSPACE_ID","email":"collaborator@example.com"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sharing_remove",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "email": "collaborator@example.com"
    }
  }
}

sharing.setPublic

Makes a workspace public, so anyone with its link can view it without signing in, or private again. Public access is always view-only. Only the owner can.

Writes data

  • HTTP: POST /api/v1/sharing.setPublic
  • CLI: pluto sharing set-public
  • MCP: sharing_setPublic

CLI flags: --workspace-id --is-public Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "isPublic": {
        "type": "boolean"
      }
    },
    "required": [
      "workspaceId",
      "isPublic"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string"
      },
      "isPublic": {
        "type": "boolean"
      },
      "owner": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "email",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "members": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "members"
        ],
        "additionalProperties": true
      },
      "teamAccess": {
        "type": "string",
        "enum": [
          "none",
          "view",
          "comment",
          "edit"
        ]
      },
      "guests": {
        "type": "object",
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "count",
          "limit"
        ],
        "additionalProperties": true
      },
      "people": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "enum": [
                "edit",
                "comment",
                "view"
              ]
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guest": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "email",
            "role",
            "name",
            "guest",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workspaceId",
      "isPublic",
      "owner",
      "team",
      "teamAccess",
      "guests",
      "people"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotWorkspaceOwnerEncoded"
    },
    "definitions": {
      "NotWorkspaceOwnerEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotWorkspaceOwner"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for sharing.setPublic
curl --fail-with-body https://app.getpluto.co/api/v1/sharing.setPublic \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","isPublic":true}'
pluto sharing set-public --json '{"workspaceId":"YOUR_WORKSPACE_ID","isPublic":true}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sharing_setPublic",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "isPublic": true
    }
  }
}

sharing.setTeamAccess

Sets what everyone in a workspace's team can do with it: "edit" (the default for new workspaces), "comment", "view", or "none" to keep it to its creator and the people it is shared with. Only the owner can.

Writes data

  • HTTP: POST /api/v1/sharing.setTeamAccess
  • CLI: pluto sharing set-team-access
  • MCP: sharing_setTeamAccess

CLI flags: --workspace-id --team-access Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "teamAccess": {
        "type": "string",
        "enum": [
          "none",
          "view",
          "comment",
          "edit"
        ]
      }
    },
    "required": [
      "workspaceId",
      "teamAccess"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string"
      },
      "isPublic": {
        "type": "boolean"
      },
      "owner": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "email",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "members": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "members"
        ],
        "additionalProperties": true
      },
      "teamAccess": {
        "type": "string",
        "enum": [
          "none",
          "view",
          "comment",
          "edit"
        ]
      },
      "guests": {
        "type": "object",
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "count",
          "limit"
        ],
        "additionalProperties": true
      },
      "people": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "enum": [
                "edit",
                "comment",
                "view"
              ]
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guest": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "email",
            "role",
            "name",
            "guest",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workspaceId",
      "isPublic",
      "owner",
      "team",
      "teamAccess",
      "guests",
      "people"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotWorkspaceOwnerEncoded"
    },
    "definitions": {
      "NotWorkspaceOwnerEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotWorkspaceOwner"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for sharing.setTeamAccess
curl --fail-with-body https://app.getpluto.co/api/v1/sharing.setTeamAccess \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","teamAccess":"view"}'
pluto sharing set-team-access --json '{"workspaceId":"YOUR_WORKSPACE_ID","teamAccess":"view"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sharing_setTeamAccess",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "teamAccess": "view"
    }
  }
}

teams.list

Lists the teams you're in, your own team first. Teams own workspaces, webhooks and library cards, and each has its own plan.

Read-only

  • HTTP: POST /api/v1/teams.list
  • CLI: pluto teams list
  • MCP: teams_list

CLI flags: No action-specific flags. Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "not": {
      "type": "null"
    }
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "teams": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "enum": [
                "admin",
                "member"
              ]
            },
            "personal": {
              "type": "boolean"
            },
            "plan": {
              "type": "string",
              "enum": [
                "free",
                "pro"
              ]
            },
            "members": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            }
          },
          "required": [
            "id",
            "name",
            "role",
            "personal",
            "plan",
            "members"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "teams"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[]
Examples
Example format for teams.list
curl --fail-with-body https://app.getpluto.co/api/v1/teams.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{}'
pluto teams list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "teams_list",
    "arguments": {}
  }
}

canvases.get

Reads one canvas: its cards, sticky notes, text boxes and frames with their properties and the start of their text, the connections between them, and the path of canvases from the top down to it. Cards with childCount > 0 have a canvas of their own; read it with that card's id as canvasId. A card's Frame property lists the frames it is in.

Read-only

  • HTTP: POST /api/v1/canvases.get
  • CLI: pluto canvases get
  • MCP: canvases_get

CLI flags: --workspace-id --canvas-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Canvas"
  },
  "definitions": {
    "PropertyDefinition": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "number",
            "select",
            "checkbox",
            "date",
            "multiselect",
            "person"
          ]
        },
        "options": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "default": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "Infinity",
                        "-Infinity",
                        "NaN"
                      ]
                    }
                  ]
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "defaultsToAdder": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "multiple": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "calculated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "name",
        "type"
      ],
      "additionalProperties": true
    },
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    },
    "Connection": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "directed": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "source",
        "target",
        "label",
        "directed"
      ],
      "additionalProperties": true
    },
    "Canvas": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "path": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "canvasId": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "canvasId",
              "title"
            ],
            "additionalProperties": true
          }
        },
        "properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PropertyDefinition"
          }
        },
        "views": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "layout": {
                "type": "string",
                "enum": [
                  "canvas",
                  "table",
                  "board",
                  "document"
                ]
              },
              "isDefault": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "layout"
            ],
            "additionalProperties": true
          }
        },
        "cards": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Card"
          }
        },
        "connections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Connection"
          }
        }
      },
      "required": [
        "id",
        "title",
        "path",
        "properties",
        "views",
        "cards",
        "connections"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for canvases.get
curl --fail-with-body https://app.getpluto.co/api/v1/canvases.get \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
pluto canvases get --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "canvases_get",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root"
    }
  }
}

canvases.screenshot

Takes a picture of a canvas as people see it, to check how it looks after changing it. Shows everything on the canvas, or only the cards in cardIds, or an area in canvas coordinates. Pictures are light themed and view-only: no panels, selection or comments. Over MCP the picture comes back as an image; over the API and CLI as base64 PNG. Taking one takes a few seconds, and the server can only take a few a minute, so take one after a batch of changes rather than after each.

Read-only

  • HTTP: POST /api/v1/canvases.screenshot
  • CLI: pluto canvases screenshot
  • MCP: canvases_screenshot

CLI flags: --workspace-id --canvas-id --card-ids --area --view-id --width --height Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardIds": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Show only these cards, frames or notes, with a little room around them"
          },
          {
            "type": "null"
          }
        ]
      },
      "area": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "x": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "y": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "width": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "height": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              }
            },
            "required": [
              "x",
              "y",
              "width",
              "height"
            ],
            "additionalProperties": true,
            "description": "Show this area of the canvas, in canvas coordinates. Leave out to show everything, or cardIds"
          },
          {
            "type": "null"
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string",
            "description": "A saved view of the canvas to show, from views in canvases_get. Leave out for the Everything view."
          },
          {
            "type": "null"
          }
        ]
      },
      "width": {
        "anyOf": [
          {
            "type": "integer",
            "minimum": 200,
            "maximum": 1920,
            "description": "Picture width in pixels, 200 to 1920 (default 1280)"
          },
          {
            "type": "null"
          }
        ]
      },
      "height": {
        "anyOf": [
          {
            "type": "integer",
            "minimum": 200,
            "maximum": 1920,
            "description": "Picture height in pixels, 200 to 1920 (default: fits what is shown, up to 1280)"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "canvasId": {
        "type": "string"
      },
      "area": {
        "type": "object",
        "properties": {
          "x": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "y": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "width": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "x",
          "y",
          "width",
          "height"
        ],
        "additionalProperties": true,
        "description": "The canvas area the picture was fitted to; the picture may show a little more around it"
      },
      "width": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "height": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "image": {
        "type": "object",
        "properties": {
          "mimeType": {
            "type": "string",
            "enum": [
              "image/png"
            ]
          },
          "data": {
            "type": "string",
            "description": "The picture, base64 encoded"
          }
        },
        "required": [
          "mimeType",
          "data"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "canvasId",
      "area",
      "width",
      "height",
      "image"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ScreenshotFailedEncoded"
    },
    "definitions": {
      "ScreenshotFailedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ScreenshotFailed"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ScreenshotLimitReachedEncoded"
    },
    "definitions": {
      "ScreenshotLimitReachedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ScreenshotLimitReached"
            ]
          },
          "perHour": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "retryAfterSeconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "_tag",
          "perHour",
          "retryAfterSeconds"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for canvases.screenshot
curl --fail-with-body https://app.getpluto.co/api/v1/canvases.screenshot \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","width":1280}'
pluto canvases screenshot --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","width":1280}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "canvases_screenshot",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "width": 1280
    }
  }
}

cards.get

Reads one card: its label, looks, properties, its whole document as Markdown, its code if it is drawn by code of its own, and how many cards and notes are on its own canvas.

Read-only

  • HTTP: POST /api/v1/cards.get
  • CLI: pluto cards get
  • MCP: cards_get

CLI flags: --workspace-id --canvas-id --card-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      }
    },
    "required": [
      "workspaceId",
      "cardId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/CardDetail"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "CardDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        },
        "canvasId": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "code": {
          "anyOf": [
            {
              "type": "string",
              "description": "The React component that draws the card; see cards_setCode"
            },
            {
              "type": "null"
            }
          ]
        },
        "settings": {
          "anyOf": [
            {
              "type": "object",
              "description": "The settings filled in for the card's code, by name; a card or frame setting gives card ids. See cards_setSettings"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount",
        "canvasId",
        "text"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.get
curl --fail-with-body https://app.getpluto.co/api/v1/cards.get \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID"}'
pluto cards get --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_get",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID"
    }
  }
}

cards.create

Adds a card, sticky note, text box or frame to a canvas. To put it on another card's own canvas, pass that card's id as canvasId. Give x and y to place it yourself, or besideCardId to place it next to another card without overlapping; otherwise it goes to the right of everything on the canvas. Placed for you, it never lands in a frame; pass frameId to put it in one. A card has a title (label) and a Markdown document (text). A sticky note or text box is only text: give it as plain label, or as Markdown text to format it (bold, italic, links, code, bullet and numbered lists; headings and other blocks become plain lines). A frame is an empty titled area (label is its title, default size 640 by 400) that cards can go in. When you've finished a batch of changes, check how the canvas looks with canvases_screenshot.

Writes data

  • HTTP: POST /api/v1/cards.create
  • CLI: pluto cards create
  • MCP: cards_create

CLI flags: --workspace-id --canvas-id --kind --label --text --beside-card-id --side --frame-id --library-card --x --y --w --h --shape --color --fill --border Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "kind": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "card",
              "note",
              "text",
              "frame"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "label": {
        "type": "string",
        "description": "The card's title, or a sticky note's or text box's plain text"
      },
      "text": {
        "anyOf": [
          {
            "type": "string",
            "description": "The card's document, or a sticky note's or text box's formatted text, in Markdown"
          },
          {
            "type": "null"
          }
        ]
      },
      "besideCardId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Place the new card next to this card or note on the same canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "side": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "top",
              "right",
              "bottom",
              "left"
            ],
            "description": "Which side of besideCardId; default \"right\""
          },
          {
            "type": "null"
          }
        ]
      },
      "frameId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Put it in this frame on the same canvas, in every view that shows the frame. A full frame grows to fit, moving what is beside it out of the way."
          },
          {
            "type": "null"
          }
        ]
      },
      "libraryCard": {
        "anyOf": [
          {
            "type": "string",
            "description": "Make it a card from the card library, by ref from library_list, such as \"pluto:poll\". Only for cards"
          },
          {
            "type": "null"
          }
        ]
      },
      "x": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "w": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "h": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "shape": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "rounded",
              "rectangle",
              "ellipse",
              "diamond",
              "triangle",
              "hexagon",
              "parallelogram",
              "cylinder"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "color": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "default",
              "grey",
              "red",
              "orange",
              "yellow",
              "green",
              "teal",
              "blue",
              "violet",
              "pink"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "fill": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "solid",
              "none"
            ],
            "description": "\"none\" draws only the outline"
          },
          {
            "type": "null"
          }
        ]
      },
      "border": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "solid",
              "dashed",
              "none"
            ]
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "label"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.create
curl --fail-with-body https://app.getpluto.co/api/v1/cards.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","label":"New card","text":"Notes and details."}'
pluto cards create --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","label":"New card","text":"Notes and details."}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_create",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "label": "New card",
      "text": "Notes and details."
    }
  }
}

cards.update

Changes a card's, sticky note's, text box's or frame's label, position, size or looks. To put a card in a frame or take it out, use frames_addCards and frames_removeCards. Leave out anything that should stay as it is. A new position moves it in the Everything view only; saved views keep where they put it. A new label for a sticky note or text box replaces its text, formatting included. When you've finished a batch of changes, check how the canvas looks with canvases_screenshot.

Writes data

  • HTTP: POST /api/v1/cards.update
  • CLI: pluto cards update
  • MCP: cards_update

CLI flags: --workspace-id --canvas-id --card-id --label --x --y --w --h --shape --color --fill --border Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      },
      "label": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "x": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "w": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "h": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "shape": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "rounded",
              "rectangle",
              "ellipse",
              "diamond",
              "triangle",
              "hexagon",
              "parallelogram",
              "cylinder"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "color": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "default",
              "grey",
              "red",
              "orange",
              "yellow",
              "green",
              "teal",
              "blue",
              "violet",
              "pink"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "fill": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "solid",
              "none"
            ],
            "description": "\"none\" draws only the outline"
          },
          {
            "type": "null"
          }
        ]
      },
      "border": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "solid",
              "dashed",
              "none"
            ]
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "cardId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.update
curl --fail-with-body https://app.getpluto.co/api/v1/cards.update \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","label":"Updated card"}'
pluto cards update --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","label":"Updated card"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_update",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "label": "Updated card"
    }
  }
}

cards.setText

Replaces a card's document with Markdown: headings, lists, links, bold and so on. To mention another card in the workspace, link to it as [Its title](pluto:card/<cardId>). To mention a person who can open the workspace, link to them as [Their name](pluto:person/<accountId>), with ids from comments_people; they get one email about it. Mentions read back the same way. People with the workspace open see the change at once. For a sticky note or text box it replaces the text, keeping inline formatting (bold, italic, links, code) and bullet and numbered lists, and turning headings and other blocks into plain lines.

Writes data

  • HTTP: POST /api/v1/cards.setText
  • CLI: pluto cards set-text
  • MCP: cards_setText

CLI flags: --workspace-id --canvas-id --card-id --markdown Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      },
      "markdown": {
        "type": "string"
      }
    },
    "required": [
      "workspaceId",
      "cardId",
      "markdown"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.setText
curl --fail-with-body https://app.getpluto.co/api/v1/cards.setText \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","markdown":"## Notes\n\nAdd details here."}'
pluto cards set-text --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","markdown":"## Notes\n\nAdd details here."}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_setText",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "markdown": "## Notes\n\nAdd details here."
    }
  }
}

cards.setCode

Before writing code, check library_list: the card library may already have a card that does the job (a poll, checklist, rating, approval, timer, countdown, progress, bookmark or control), which cards_useLibraryCard or cards_create's libraryCard puts on a card. Gives a card code of its own: a React component, in TSX, that draws the whole card in place of the default one. Use it for a live preview, a chart, a status board or controls that set the card's properties. An empty string removes it and the card is drawn as usual again. Code set on a reference goes to its original, and every reference to a card is drawn by the card's code. Only cards can have code, not sticky notes, text boxes or frames. The code runs in a sandbox with no network access; it can import only from "react" and "@pluto/cards", and must have a default export. Pluto checks the syntax and refuses code that doesn't compile. "@pluto/cards" has: - useCard(): { id, title, shape, color, fill, border, properties: [{ name, type, value, display, calculated, options }], readOnly } - useProperty(name): [value, set]; set(null) clears it. A person property's value is a list of account ids - usePeople(property): [{ id, name, initials, color }] for a person property - useViewer(): { id, name, initials, color, access } for whoever is looking, in embeds too, or null when signed out - useCardState(key, initial): [value, set], data the card keeps that isn't a property (poll votes, checklist items, a timer's end), shared live, up to 64 KB per card; useCardState(key, initial, { perPerson: true }): [mine, setMine, all: [{ person, value }]] keeps one value per person. set takes a value or (current) => next. Only people who can edit can change it - useNow({ every? }): the server's time in ms, re-rendering every that many ms (default 1000) - Settings, filled in once by a person in the card's Setup form (or with cards_setSettings): export const settings = { goal: setting.card({ label, needs: { Status: { type: "select", options: ["Done"] } } }), color: setting.color() }. Kinds: setting.text, number({ min, max, step }), switch, choice({ options }), color, property({ type }) (a property of this canvas), card({ multiple?, thisCanvasOnly? (default true), needs?, required? }), frame({ multiple?, thisCanvasOnly?, required? }). Read one with useSetting(settings.goal): a card setting gives a card handle (a list when multiple), a frame setting a frame handle - useConnected({ label?, direction? }): this card's connections as [{ from, to, directed, label, other(card) }], each end a card handle - useFrames(): frame handles for the frames holding this card, innermost first - useViewport(): [{ canvasId, viewId, x, y, zoom, visible: { x, y, width, height } }, go], where the viewer is looking; go(cardOrFrameHandle | { canvasId?, x, y, zoom? }, { zoom?: "fit" | number, open?, animate? }) moves their view there, on another canvas if needed, after a click. useCard().viewedAs is "reference" on a live reference, and useCard().original is then the original card's handle, so go(original, { zoom: "fit" }) jumps to it - Card handles (also what useCard() returns): { id, title, canvas, here, box, properties, value(name), text, number, checkbox, date, options, people, set(name, value) → Promise<{ ok } | { ok: false, reason, message }>, connections(filter?), frames }. Frame handles: { id, title, cards, add(card), remove(card) }. Setting another card's property, or adding to a frame, works only in response to a click or key press, and only on cards the code reached through its settings, connections and frames - <Card shape? color? padding? style?>…</Card>: the card's outline in its shape and colours; <Card /> with no children is the default card, the same as <Card><Title /><Properties /><Excerpt /></Card> - <Title />, <Properties names? max? />, <Excerpt /> (start of the card's document), <PropertyValue property /> - Controls bound to a property: <Slider property min? max? step? label? />, <Toggle property label? /> (checkbox), <Choice property label? menu? /> (select), <NumberInput property … />, <TextInput property placeholder? multiline? />, <DateInput property />, <Button property? value? onClick? variant="primary"?> - <Progress value max? tone? label? />, <Badge tone?>, <Stat label value />, <Avatar person size? />, <Row gap? align? justify? wrap?>, <Stack gap?> Tones: teal, blue, violet, amber, green, red, grey. Controls can set only properties the card's canvas already has (properties.set or the app adds them), never Title or calculated ones, and only to a value of the property's type. Calculated properties are readable, so a card can show values gathered from connected cards or its own canvas. Example: import { Card, Title, Slider, Progress, useProperty } from "@pluto/cards"; export default function Effort() { const [done] = useProperty("Done"); return <Card><Title /><Slider property="Done" /><Progress value={Number(done ?? 0)} /></Card> }

Writes data

  • HTTP: POST /api/v1/cards.setCode
  • CLI: pluto cards set-code
  • MCP: cards_setCode

CLI flags: --workspace-id --canvas-id --card-id --code Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      },
      "code": {
        "type": "string",
        "description": "The component's TSX source, up to 100,000 characters; empty to go back to the default card"
      }
    },
    "required": [
      "workspaceId",
      "cardId",
      "code"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.setCode
curl --fail-with-body https://app.getpluto.co/api/v1/cards.setCode \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","code":"import { Card, Title, Slider } from \"@pluto/cards\"\n\nexport default function Effort() {\n  return <Card><Title /><Slider property=\"Done\" /></Card>\n}\n"}'
pluto cards set-code --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","code":"import { Card, Title, Slider } from \"@pluto/cards\"\n\nexport default function Effort() {\n  return <Card><Title /><Slider property=\"Done\" /></Card>\n}\n"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_setCode",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "code": "import { Card, Title, Slider } from \"@pluto/cards\"\n\nexport default function Effort() {\n  return <Card><Title /><Slider property=\"Done\" /></Card>\n}\n"
    }
  }
}

cards.setSettings

Fills in a card's settings: what its code declares with `export const settings` and a person otherwise fills in once in the card's Setup form. Give values by setting name: a string, number or true/false as the setting's kind takes; a color name; a property name for a property setting; a card or frame id (or a list of them, for one that takes several) for a card or frame setting, on the card's own canvas unless the setting allows others. null clears a setting back to its default. Settings left out stay as they are. Settings set through a reference go to its original. cards_get returns the settings a card has.

Writes data

  • HTTP: POST /api/v1/cards.setSettings
  • CLI: pluto cards set-settings
  • MCP: cards_setSettings

CLI flags: --workspace-id --canvas-id --card-id --settings Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      },
      "settings": {
        "type": "object",
        "description": "Setting name → value"
      }
    },
    "required": [
      "workspaceId",
      "cardId",
      "settings"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/CardDetail"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "CardDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        },
        "canvasId": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "code": {
          "anyOf": [
            {
              "type": "string",
              "description": "The React component that draws the card; see cards_setCode"
            },
            {
              "type": "null"
            }
          ]
        },
        "settings": {
          "anyOf": [
            {
              "type": "object",
              "description": "The settings filled in for the card's code, by name; a card or frame setting gives card ids. See cards_setSettings"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount",
        "canvasId",
        "text"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.setSettings
curl --fail-with-body https://app.getpluto.co/api/v1/cards.setSettings \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","settings":{"goal":"YOUR_OTHER_CARD_ID","showDone":true}}'
pluto cards set-settings --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","settings":{"goal":"YOUR_OTHER_CARD_ID","showDone":true}}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_setSettings",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "settings": {
        "goal": "YOUR_OTHER_CARD_ID",
        "showDone": true
      }
    }
  }
}

cards.useLibraryCard

Makes a card a card from the card library, by ref from library_list. The card stays linked to the library: a change to the library card reaches every card using it. Its own code, settings and saved state are replaced; its title, properties and document stay. Fill in its settings next with cards_setSettings. Set on a reference, it goes to the original. To change the code for this card only, get it with cards_get and give it to cards_setCode, which unlinks the card.

Writes data

  • HTTP: POST /api/v1/cards.useLibraryCard
  • CLI: pluto cards use-library-card
  • MCP: cards_useLibraryCard

CLI flags: --workspace-id --canvas-id --card-id --ref Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      },
      "ref": {
        "type": "string",
        "description": "The library card's ref, such as \"pluto:poll\" or \"workspace:…\""
      }
    },
    "required": [
      "workspaceId",
      "cardId",
      "ref"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.useLibraryCard
curl --fail-with-body https://app.getpluto.co/api/v1/cards.useLibraryCard \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","ref":"pluto:poll"}'
pluto cards use-library-card --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","ref":"pluto:poll"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_useLibraryCard",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "ref": "pluto:poll"
    }
  }
}

cards.reference

Places a live reference to a card from another canvas of the same workspace onto this canvas, so one card can show at several levels. The reference shows the original's title, looks, code, document, properties and canvas, and changing any of those through it changes the original. Its position, size and connections are its own, so connect it to cards here with connections_create. Only cards can be referenced, not references, notes or frames, and not onto the canvas the card is already on. Give x and y, or besideCardId; otherwise it goes to the right of everything on the canvas.

Writes data

  • HTTP: POST /api/v1/cards.reference
  • CLI: pluto cards reference
  • MCP: cards_reference

CLI flags: --workspace-id --canvas-id --card-id --beside-card-id --side --x --y Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "The card to show, from any other canvas in the workspace"
      },
      "besideCardId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Place the reference next to this card or note on the same canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "side": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "top",
              "right",
              "bottom",
              "left"
            ],
            "description": "Which side of besideCardId; default \"right\""
          },
          {
            "type": "null"
          }
        ]
      },
      "x": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "cardId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.reference
curl --fail-with-body https://app.getpluto.co/api/v1/cards.reference \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID_FROM_ANOTHER_CANVAS","besideCardId":"YOUR_CARD_ID"}'
pluto cards reference --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID_FROM_ANOTHER_CANVAS","besideCardId":"YOUR_CARD_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_reference",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID_FROM_ANOTHER_CANVAS",
      "besideCardId": "YOUR_CARD_ID"
    }
  }
}

cards.delete

Deletes cards, sticky notes, text boxes or frames from a canvas, with their connections and everything on the cards' own canvases. Deleting a card also deletes every reference to it, and to the cards on its canvas, wherever they are; deleting a reference deletes only the reference. Deleting a frame leaves what was in it. This can't be undone through the API.

Writes data · Destructive: removes data that can't be brought back.

  • HTTP: POST /api/v1/cards.delete
  • CLI: pluto cards delete
  • MCP: cards_delete

CLI flags: --workspace-id --canvas-id --card-ids Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardIds": {
        "type": "array",
        "prefixItems": [
          {
            "type": "string"
          }
        ],
        "minItems": 1,
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "workspaceId",
      "cardIds"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for cards.delete
curl --fail-with-body https://app.getpluto.co/api/v1/cards.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardIds":["YOUR_CARD_ID"]}'
pluto cards delete --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardIds":["YOUR_CARD_ID"]}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cards_delete",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardIds": [
        "YOUR_CARD_ID"
      ]
    }
  }
}

frames.addCards

Puts cards, sticky notes, text boxes or other frames in a frame on the same canvas, in every view that shows the frame. Each goes in the first free spot inside; when the frame is full it grows to fit, and whatever is beside it moves out of the way, keeping its layout. Cards in a frame get its name in their Frame property.

Writes data

  • HTTP: POST /api/v1/frames.addCards
  • CLI: pluto frames add-cards
  • MCP: frames_addCards

CLI flags: --workspace-id --canvas-id --frame-id --card-ids Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "frameId": {
        "type": "string",
        "description": "The frame's id"
      },
      "cardIds": {
        "type": "array",
        "prefixItems": [
          {
            "type": "string"
          }
        ],
        "minItems": 1,
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "workspaceId",
      "frameId",
      "cardIds"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "frame": {
        "$ref": "#/$defs/Card"
      },
      "cards": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Card"
        }
      }
    },
    "required": [
      "frame",
      "cards"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for frames.addCards
curl --fail-with-body https://app.getpluto.co/api/v1/frames.addCards \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","frameId":"YOUR_FRAME_ID","cardIds":["YOUR_CARD_ID"]}'
pluto frames add-cards --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","frameId":"YOUR_FRAME_ID","cardIds":["YOUR_CARD_ID"]}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "frames_addCards",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "frameId": "YOUR_FRAME_ID",
      "cardIds": [
        "YOUR_CARD_ID"
      ]
    }
  }
}

frames.removeCards

Takes cards out of a frame, moving each to the nearest free spot outside it, in every view where it was in the frame. A card in a frame inside another frame can stay in the outer one.

Writes data

  • HTTP: POST /api/v1/frames.removeCards
  • CLI: pluto frames remove-cards
  • MCP: frames_removeCards

CLI flags: --workspace-id --canvas-id --frame-id --card-ids Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "frameId": {
        "type": "string",
        "description": "The frame's id"
      },
      "cardIds": {
        "type": "array",
        "prefixItems": [
          {
            "type": "string"
          }
        ],
        "minItems": 1,
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "workspaceId",
      "frameId",
      "cardIds"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "cards": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Card"
        }
      }
    },
    "required": [
      "cards"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for frames.removeCards
curl --fail-with-body https://app.getpluto.co/api/v1/frames.removeCards \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","frameId":"YOUR_FRAME_ID","cardIds":["YOUR_CARD_ID"]}'
pluto frames remove-cards --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","frameId":"YOUR_FRAME_ID","cardIds":["YOUR_CARD_ID"]}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "frames_removeCards",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "frameId": "YOUR_FRAME_ID",
      "cardIds": [
        "YOUR_CARD_ID"
      ]
    }
  }
}

connections.create

Connects two cards or notes on the same canvas. Connections are two-way unless directed is true, which draws an arrow from `from` to `to`. A label says what the connection means, like "calls" or "reads from"; queries can follow connections by label.

Writes data

  • HTTP: POST /api/v1/connections.create
  • CLI: pluto connections create
  • MCP: connections_create

CLI flags: --workspace-id --canvas-id --from --to --label --directed Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "from": {
        "type": "string",
        "description": "A card's id"
      },
      "to": {
        "type": "string",
        "description": "A card's id"
      },
      "label": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "directed": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "from",
      "to"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Connection"
  },
  "definitions": {
    "Connection": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "directed": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "source",
        "target",
        "label",
        "directed"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for connections.create
curl --fail-with-body https://app.getpluto.co/api/v1/connections.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","from":"YOUR_SOURCE_CARD_ID","to":"YOUR_TARGET_CARD_ID","label":"depends on","directed":true}'
pluto connections create --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","from":"YOUR_SOURCE_CARD_ID","to":"YOUR_TARGET_CARD_ID","label":"depends on","directed":true}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "connections_create",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "from": "YOUR_SOURCE_CARD_ID",
      "to": "YOUR_TARGET_CARD_ID",
      "label": "depends on",
      "directed": true
    }
  }
}

connections.update

Changes a connection's label or direction. reverse: true points a one-way connection the other way.

Writes data

  • HTTP: POST /api/v1/connections.update
  • CLI: pluto connections update
  • MCP: connections_update

CLI flags: --workspace-id --canvas-id --connection-id --label --directed --reverse Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "connectionId": {
        "type": "string"
      },
      "label": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "directed": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ]
      },
      "reverse": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "connectionId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Connection"
  },
  "definitions": {
    "Connection": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "directed": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "source",
        "target",
        "label",
        "directed"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ConnectionNotFoundEncoded"
    },
    "definitions": {
      "ConnectionNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ConnectionNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "connectionId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for connections.update
curl --fail-with-body https://app.getpluto.co/api/v1/connections.update \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","connectionId":"YOUR_CONNECTION_ID","label":"related to","directed":false}'
pluto connections update --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","connectionId":"YOUR_CONNECTION_ID","label":"related to","directed":false}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "connections_update",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "connectionId": "YOUR_CONNECTION_ID",
      "label": "related to",
      "directed": false
    }
  }
}

connections.delete

Removes connections from a canvas. The cards stay.

Writes data · Destructive: removes data that can't be brought back.

  • HTTP: POST /api/v1/connections.delete
  • CLI: pluto connections delete
  • MCP: connections_delete

CLI flags: --workspace-id --canvas-id --connection-ids Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "connectionIds": {
        "type": "array",
        "prefixItems": [
          {
            "type": "string"
          }
        ],
        "minItems": 1,
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "workspaceId",
      "connectionIds"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for connections.delete
curl --fail-with-body https://app.getpluto.co/api/v1/connections.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","connectionIds":["YOUR_CONNECTION_ID"]}'
pluto connections delete --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","connectionIds":["YOUR_CONNECTION_ID"]}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "connections_delete",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "connectionIds": [
        "YOUR_CONNECTION_ID"
      ]
    }
  }
}

properties.set

Sets a property on a card, like Owner, Status or Cost, or clears it with value null. Every card on a canvas shares the same properties, each with one type: text, number, select, checkbox, date (YYYY-MM-DD) or person (people who can open the workspace, given as a list of emails or account ids from comments_people; read back as account ids). A new name adds the property to the whole canvas, with the type you give or one guessed from the value; the other cards get it blank. Setting "Title" changes the label. Frame can't be set: it lists the frames a card is in.

Writes data

  • HTTP: POST /api/v1/properties.set
  • CLI: pluto properties set
  • MCP: properties_set

CLI flags: --workspace-id --canvas-id --card-id --name --value --type Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "type": "string",
        "description": "A card's id"
      },
      "name": {
        "type": "string",
        "minLength": 1
      },
      "value": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      },
      "type": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "text",
              "number",
              "select",
              "checkbox",
              "date",
              "person"
            ],
            "description": "Only used when the property name is new"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "cardId",
      "name",
      "value"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/Card"
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for properties.set
curl --fail-with-body https://app.getpluto.co/api/v1/properties.set \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","name":"Status","value":"In progress","type":"select"}'
pluto properties set --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","name":"Status","value":"In progress","type":"select"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "properties_set",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "name": "Status",
      "value": "In progress",
      "type": "select"
    }
  }
}

graph.query

Finds cards on one canvas by their properties and connections, the way the query builder does. Example: start from cards where Status is "Live", then follow "calls" connections out to cards where Team is "Payments".

Read-only

  • HTTP: POST /api/v1/graph.query
  • CLI: pluto graph query
  • MCP: graph_query

CLI flags: --workspace-id --canvas-id --query Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "query": {
        "type": "object",
        "properties": {
          "start": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "node"
                    ]
                  },
                  "nodeId": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "nodeId"
                ],
                "additionalProperties": true
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "set"
                    ]
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "property": {
                          "type": "string",
                          "description": "A property name, or \"Title\" for the card's label"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "=",
                            "≠",
                            ">",
                            "≥",
                            "<",
                            "≤",
                            "is",
                            "is not",
                            "contains",
                            "before",
                            "after",
                            "set",
                            "empty",
                            "checked",
                            "unchecked"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "property",
                        "op"
                      ],
                      "additionalProperties": true
                    }
                  }
                },
                "required": [
                  "type",
                  "where"
                ],
                "additionalProperties": true
              }
            ],
            "description": "Start from one card, or from every card on the canvas matching all the conditions (none = every card)"
          },
          "hops": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "edge": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Only follow connections with this label; leave out to follow any"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "direction": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "out",
                            "in",
                            "any"
                          ],
                          "description": "For one-way connections: \"out\" follows the arrow, \"in\" goes against it. Default \"any\""
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "where": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "property": {
                                "type": "string",
                                "description": "A property name, or \"Title\" for the card's label"
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "=",
                                  "≠",
                                  ">",
                                  "≥",
                                  "<",
                                  "≤",
                                  "is",
                                  "is not",
                                  "contains",
                                  "before",
                                  "after",
                                  "set",
                                  "empty",
                                  "checked",
                                  "unchecked"
                                ]
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "property",
                              "op"
                            ],
                            "additionalProperties": true
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": true
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Steps along connections, each keeping only the cards matching its conditions"
          },
          "show": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "path",
                  "end"
                ],
                "description": "\"path\" (default) returns the cards from every step, \"end\" only the last step's"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "start"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "workspaceId",
      "query"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "steps": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "cards": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Card"
        }
      },
      "connections": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Connection"
        }
      }
    },
    "required": [
      "steps",
      "cards",
      "connections"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "ReferenceTo": {
      "type": "object",
      "properties": {
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string"
        }
      },
      "required": [
        "canvasId",
        "cardId"
      ],
      "additionalProperties": true,
      "description": "This card is a live reference to the card cardId on canvas canvasId. Title, looks, document, properties and its own canvas are the original's; editing them edits the original. Position, size and connections belong to the reference."
    },
    "Card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "card",
            "note",
            "text",
            "frame"
          ]
        },
        "label": {
          "type": "string"
        },
        "x": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "w": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "shape": {
          "type": "string",
          "enum": [
            "rounded",
            "rectangle",
            "ellipse",
            "diamond",
            "triangle",
            "hexagon",
            "parallelogram",
            "cylinder"
          ]
        },
        "color": {
          "type": "string",
          "enum": [
            "default",
            "grey",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "violet",
            "pink"
          ]
        },
        "fill": {
          "type": "string",
          "enum": [
            "solid",
            "none"
          ]
        },
        "border": {
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "none"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "excerpt": {
          "type": "string"
        },
        "childCount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ]
        },
        "hasCode": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "True when the card is drawn by code of its own. cards_get returns the code"
            },
            {
              "type": "null"
            }
          ]
        },
        "libraryCard": {
          "anyOf": [
            {
              "type": "string",
              "description": "The card library card it uses, by ref (see library_list); its code comes from there"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "type": "string",
              "description": "For sticky notes: who wrote it, like \"Ada\" or \"Claude for Ada\" when an agent wrote it for Ada"
            },
            {
              "type": "null"
            }
          ]
        },
        "referenceTo": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferenceTo"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "label",
        "x",
        "y",
        "w",
        "h",
        "shape",
        "color",
        "fill",
        "border",
        "properties",
        "excerpt",
        "childCount"
      ],
      "additionalProperties": true
    },
    "Connection": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "directed": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "source",
        "target",
        "label",
        "directed"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for graph.query
curl --fail-with-body https://app.getpluto.co/api/v1/graph.query \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","query":{"start":{"type":"node","nodeId":"YOUR_CARD_ID"},"hops":[{"direction":"out","edge":"depends on"}]}}'
pluto graph query --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","query":{"start":{"type":"node","nodeId":"YOUR_CARD_ID"},"hops":[{"direction":"out","edge":"depends on"}]}}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "graph_query",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "query": {
        "start": {
          "type": "node",
          "nodeId": "YOUR_CARD_ID"
        },
        "hops": [
          {
            "direction": "out",
            "edge": "depends on"
          }
        ]
      }
    }
  }
}

views.list

Lists a canvas's saved views: the tabs beside Everything. Each shows the cards its query finds, laid out on the canvas, as a table or as a board, or is the canvas's Document view. Gives each view's query and settings, and which one the canvas opens in.

Read-only

  • HTTP: POST /api/v1/views.list
  • CLI: pluto views list
  • MCP: views_list

CLI flags: --workspace-id --canvas-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "views": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/View"
        }
      }
    },
    "required": [
      "views"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "ViewSettings": {
      "type": "object",
      "properties": {
        "hidden": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Table: property columns to leave out. The Title column always shows"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string"
                },
                "descending": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "property"
              ],
              "additionalProperties": true,
              "description": "Table and board: sort cards by this property, or \"Title\". Left out, cards keep the order they read in on the canvas"
            },
            {
              "type": "null"
            }
          ]
        },
        "calcs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "count",
                  "filled",
                  "empty",
                  "checked",
                  "sum",
                  "avg",
                  "min",
                  "max"
                ]
              },
              "description": "Table: what each column's footer works out, by property name or \"Title\". count, filled and empty work on any column, checked on checkboxes, and sum, avg, min and max on numbers. Title only takes count"
            },
            {
              "type": "null"
            }
          ]
        },
        "groupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Board: the select or checkbox property whose values are the columns. Left out, the canvas's first one"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: columns to leave out, by value: a select option, \"\" for cards with none, or \"true\" and \"false\" for a checkbox"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardProperties": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: the properties each card shows. Left out, every property the card has a value for"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardText": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Board: whether cards show the start of their document. Default true"
            },
            {
              "type": "null"
            }
          ]
        },
        "rowGroupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Table: group rows into sections by this property. Board: split the columns into rows (sub-groups) by it. A select, checkbox, text or person property, or Frame"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups to leave out, by value: as hiddenGroups, a text value, or a person's account id"
            },
            {
              "type": "null"
            }
          ]
        },
        "collapsedRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups folded down to their heading, by value as hiddenRowGroups"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true
    },
    "View": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "layout": {
          "type": "string",
          "enum": [
            "canvas",
            "table",
            "board",
            "document"
          ]
        },
        "isDefault": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "The canvas opens in this view for everyone"
            },
            {
              "type": "null"
            }
          ]
        },
        "query": {
          "type": "object",
          "properties": {
            "start": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "node"
                      ]
                    },
                    "nodeId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "nodeId"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "set"
                      ]
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "property": {
                            "type": "string",
                            "description": "A property name, or \"Title\" for the card's label"
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "=",
                              "≠",
                              ">",
                              "≥",
                              "<",
                              "≤",
                              "is",
                              "is not",
                              "contains",
                              "before",
                              "after",
                              "set",
                              "empty",
                              "checked",
                              "unchecked"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "property",
                          "op"
                        ],
                        "additionalProperties": true
                      }
                    }
                  },
                  "required": [
                    "type",
                    "where"
                  ],
                  "additionalProperties": true
                }
              ],
              "description": "Start from one card, or from every card on the canvas matching all the conditions (none = every card)"
            },
            "hops": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "edge": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Only follow connections with this label; leave out to follow any"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "direction": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "out",
                              "in",
                              "any"
                            ],
                            "description": "For one-way connections: \"out\" follows the arrow, \"in\" goes against it. Default \"any\""
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "where": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "property": {
                                  "type": "string",
                                  "description": "A property name, or \"Title\" for the card's label"
                                },
                                "op": {
                                  "type": "string",
                                  "enum": [
                                    "=",
                                    "≠",
                                    ">",
                                    "≥",
                                    "<",
                                    "≤",
                                    "is",
                                    "is not",
                                    "contains",
                                    "before",
                                    "after",
                                    "set",
                                    "empty",
                                    "checked",
                                    "unchecked"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "property",
                                "op"
                              ],
                              "additionalProperties": true
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Steps along connections, each keeping only the cards matching its conditions"
            },
            "show": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "path",
                    "end"
                  ],
                  "description": "\"path\" (default) returns the cards from every step, \"end\" only the last step's"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "start"
          ],
          "additionalProperties": true,
          "description": "Which cards the view shows. A document view has none"
        },
        "settings": {
          "$ref": "#/$defs/ViewSettings"
        }
      },
      "required": [
        "id",
        "name",
        "layout",
        "query",
        "settings"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for views.list
curl --fail-with-body https://app.getpluto.co/api/v1/views.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
pluto views list --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "views_list",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root"
    }
  }
}

views.create

Saves a new view of a canvas, as a tab beside Everything. A table lists cards as rows with a column per property; a board puts them in columns by a select or checkbox property, and dragging a card to another column changes it. The query picks which cards show; left out, every card. A "document" view shows the canvas's own document and properties instead, and a canvas has at most one. Settings are the view's own, for everyone. Someone who changed the view for themselves in the app keeps their own version until they reset it.

Writes data

  • HTTP: POST /api/v1/views.create
  • CLI: pluto views create
  • MCP: views_create

CLI flags: --workspace-id --canvas-id --name --layout --query --settings --is-default Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "name": {
        "type": "string",
        "minLength": 1
      },
      "layout": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "canvas",
              "table",
              "board",
              "document"
            ],
            "description": "How the view shows its cards. Default \"table\""
          },
          {
            "type": "null"
          }
        ]
      },
      "query": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "node"
                        ]
                      },
                      "nodeId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "nodeId"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "set"
                        ]
                      },
                      "where": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "property": {
                              "type": "string",
                              "description": "A property name, or \"Title\" for the card's label"
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "=",
                                "≠",
                                ">",
                                "≥",
                                "<",
                                "≤",
                                "is",
                                "is not",
                                "contains",
                                "before",
                                "after",
                                "set",
                                "empty",
                                "checked",
                                "unchecked"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "property",
                            "op"
                          ],
                          "additionalProperties": true
                        }
                      }
                    },
                    "required": [
                      "type",
                      "where"
                    ],
                    "additionalProperties": true
                  }
                ],
                "description": "Start from one card, or from every card on the canvas matching all the conditions (none = every card)"
              },
              "hops": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "edge": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Only follow connections with this label; leave out to follow any"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "direction": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "out",
                                "in",
                                "any"
                              ],
                              "description": "For one-way connections: \"out\" follows the arrow, \"in\" goes against it. Default \"any\""
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "where": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "property": {
                                    "type": "string",
                                    "description": "A property name, or \"Title\" for the card's label"
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "=",
                                      "≠",
                                      ">",
                                      "≥",
                                      "<",
                                      "≤",
                                      "is",
                                      "is not",
                                      "contains",
                                      "before",
                                      "after",
                                      "set",
                                      "empty",
                                      "checked",
                                      "unchecked"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "property",
                                  "op"
                                ],
                                "additionalProperties": true
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Steps along connections, each keeping only the cards matching its conditions"
              },
              "show": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "path",
                      "end"
                    ],
                    "description": "\"path\" (default) returns the cards from every step, \"end\" only the last step's"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "start"
            ],
            "additionalProperties": true,
            "description": "Which cards on the canvas the view shows. Left out, every card"
          },
          {
            "type": "null"
          }
        ]
      },
      "settings": {
        "anyOf": [
          {
            "$ref": "#/$defs/ViewSettings"
          },
          {
            "type": "null"
          }
        ]
      },
      "isDefault": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "Make the canvas open in this view for everyone"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "name"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "ViewSettings": {
      "type": "object",
      "properties": {
        "hidden": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Table: property columns to leave out. The Title column always shows"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string"
                },
                "descending": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "property"
              ],
              "additionalProperties": true,
              "description": "Table and board: sort cards by this property, or \"Title\". Left out, cards keep the order they read in on the canvas"
            },
            {
              "type": "null"
            }
          ]
        },
        "calcs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "count",
                  "filled",
                  "empty",
                  "checked",
                  "sum",
                  "avg",
                  "min",
                  "max"
                ]
              },
              "description": "Table: what each column's footer works out, by property name or \"Title\". count, filled and empty work on any column, checked on checkboxes, and sum, avg, min and max on numbers. Title only takes count"
            },
            {
              "type": "null"
            }
          ]
        },
        "groupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Board: the select or checkbox property whose values are the columns. Left out, the canvas's first one"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: columns to leave out, by value: a select option, \"\" for cards with none, or \"true\" and \"false\" for a checkbox"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardProperties": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: the properties each card shows. Left out, every property the card has a value for"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardText": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Board: whether cards show the start of their document. Default true"
            },
            {
              "type": "null"
            }
          ]
        },
        "rowGroupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Table: group rows into sections by this property. Board: split the columns into rows (sub-groups) by it. A select, checkbox, text or person property, or Frame"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups to leave out, by value: as hiddenGroups, a text value, or a person's account id"
            },
            {
              "type": "null"
            }
          ]
        },
        "collapsedRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups folded down to their heading, by value as hiddenRowGroups"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true,
      "description": "How a table or board shows its cards: hidden columns, sort, column footers, board columns and grouping"
    }
  }
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/View"
  },
  "definitions": {
    "ViewSettings": {
      "type": "object",
      "properties": {
        "hidden": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Table: property columns to leave out. The Title column always shows"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string"
                },
                "descending": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "property"
              ],
              "additionalProperties": true,
              "description": "Table and board: sort cards by this property, or \"Title\". Left out, cards keep the order they read in on the canvas"
            },
            {
              "type": "null"
            }
          ]
        },
        "calcs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "count",
                  "filled",
                  "empty",
                  "checked",
                  "sum",
                  "avg",
                  "min",
                  "max"
                ]
              },
              "description": "Table: what each column's footer works out, by property name or \"Title\". count, filled and empty work on any column, checked on checkboxes, and sum, avg, min and max on numbers. Title only takes count"
            },
            {
              "type": "null"
            }
          ]
        },
        "groupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Board: the select or checkbox property whose values are the columns. Left out, the canvas's first one"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: columns to leave out, by value: a select option, \"\" for cards with none, or \"true\" and \"false\" for a checkbox"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardProperties": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: the properties each card shows. Left out, every property the card has a value for"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardText": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Board: whether cards show the start of their document. Default true"
            },
            {
              "type": "null"
            }
          ]
        },
        "rowGroupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Table: group rows into sections by this property. Board: split the columns into rows (sub-groups) by it. A select, checkbox, text or person property, or Frame"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups to leave out, by value: as hiddenGroups, a text value, or a person's account id"
            },
            {
              "type": "null"
            }
          ]
        },
        "collapsedRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups folded down to their heading, by value as hiddenRowGroups"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true
    },
    "View": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "layout": {
          "type": "string",
          "enum": [
            "canvas",
            "table",
            "board",
            "document"
          ]
        },
        "isDefault": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "The canvas opens in this view for everyone"
            },
            {
              "type": "null"
            }
          ]
        },
        "query": {
          "type": "object",
          "properties": {
            "start": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "node"
                      ]
                    },
                    "nodeId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "nodeId"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "set"
                      ]
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "property": {
                            "type": "string",
                            "description": "A property name, or \"Title\" for the card's label"
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "=",
                              "≠",
                              ">",
                              "≥",
                              "<",
                              "≤",
                              "is",
                              "is not",
                              "contains",
                              "before",
                              "after",
                              "set",
                              "empty",
                              "checked",
                              "unchecked"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "property",
                          "op"
                        ],
                        "additionalProperties": true
                      }
                    }
                  },
                  "required": [
                    "type",
                    "where"
                  ],
                  "additionalProperties": true
                }
              ],
              "description": "Start from one card, or from every card on the canvas matching all the conditions (none = every card)"
            },
            "hops": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "edge": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Only follow connections with this label; leave out to follow any"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "direction": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "out",
                              "in",
                              "any"
                            ],
                            "description": "For one-way connections: \"out\" follows the arrow, \"in\" goes against it. Default \"any\""
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "where": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "property": {
                                  "type": "string",
                                  "description": "A property name, or \"Title\" for the card's label"
                                },
                                "op": {
                                  "type": "string",
                                  "enum": [
                                    "=",
                                    "≠",
                                    ">",
                                    "≥",
                                    "<",
                                    "≤",
                                    "is",
                                    "is not",
                                    "contains",
                                    "before",
                                    "after",
                                    "set",
                                    "empty",
                                    "checked",
                                    "unchecked"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "property",
                                "op"
                              ],
                              "additionalProperties": true
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Steps along connections, each keeping only the cards matching its conditions"
            },
            "show": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "path",
                    "end"
                  ],
                  "description": "\"path\" (default) returns the cards from every step, \"end\" only the last step's"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "start"
          ],
          "additionalProperties": true,
          "description": "Which cards the view shows. A document view has none"
        },
        "settings": {
          "$ref": "#/$defs/ViewSettings"
        }
      },
      "required": [
        "id",
        "name",
        "layout",
        "query",
        "settings"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for views.create
curl --fail-with-body https://app.getpluto.co/api/v1/views.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","name":"Tasks by status","layout":"board","query":{"start":{"type":"set","where":[{"property":"Type","op":"is","value":"Task"}]}},"settings":{"groupBy":"Status","rowGroupBy":"Owner","sort":{"property":"Due","descending":false}}}'
pluto views create --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","name":"Tasks by status","layout":"board","query":{"start":{"type":"set","where":[{"property":"Type","op":"is","value":"Task"}]}},"settings":{"groupBy":"Status","rowGroupBy":"Owner","sort":{"property":"Due","descending":false}}}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "views_create",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "name": "Tasks by status",
      "layout": "board",
      "query": {
        "start": {
          "type": "set",
          "where": [
            {
              "property": "Type",
              "op": "is",
              "value": "Task"
            }
          ]
        }
      },
      "settings": {
        "groupBy": "Status",
        "rowGroupBy": "Owner",
        "sort": {
          "property": "Due",
          "descending": false
        }
      }
    }
  }
}

views.update

Changes a saved view: its name, layout, query or settings, or whether the canvas opens in it. Leave out what stays the same. Settings change one by one: a setting left out stays, and null clears it. Settings are the view's own, for everyone. Someone who changed the view for themselves in the app keeps their own version until they reset it.

Writes data

  • HTTP: POST /api/v1/views.update
  • CLI: pluto views update
  • MCP: views_update

CLI flags: --workspace-id --canvas-id --view-id --name --layout --query --settings --is-default Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "viewId": {
        "type": "string",
        "description": "The view's id, from views_list"
      },
      "name": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1
          },
          {
            "type": "null"
          }
        ]
      },
      "layout": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "canvas",
              "table",
              "board"
            ],
            "description": "Switch between canvas, table and board. A document view stays a document view"
          },
          {
            "type": "null"
          }
        ]
      },
      "query": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "node"
                        ]
                      },
                      "nodeId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "nodeId"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "set"
                        ]
                      },
                      "where": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "property": {
                              "type": "string",
                              "description": "A property name, or \"Title\" for the card's label"
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "=",
                                "≠",
                                ">",
                                "≥",
                                "<",
                                "≤",
                                "is",
                                "is not",
                                "contains",
                                "before",
                                "after",
                                "set",
                                "empty",
                                "checked",
                                "unchecked"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "property",
                            "op"
                          ],
                          "additionalProperties": true
                        }
                      }
                    },
                    "required": [
                      "type",
                      "where"
                    ],
                    "additionalProperties": true
                  }
                ],
                "description": "Start from one card, or from every card on the canvas matching all the conditions (none = every card)"
              },
              "hops": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "edge": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Only follow connections with this label; leave out to follow any"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "direction": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "out",
                                "in",
                                "any"
                              ],
                              "description": "For one-way connections: \"out\" follows the arrow, \"in\" goes against it. Default \"any\""
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "where": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "property": {
                                    "type": "string",
                                    "description": "A property name, or \"Title\" for the card's label"
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "=",
                                      "≠",
                                      ">",
                                      "≥",
                                      "<",
                                      "≤",
                                      "is",
                                      "is not",
                                      "contains",
                                      "before",
                                      "after",
                                      "set",
                                      "empty",
                                      "checked",
                                      "unchecked"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "property",
                                  "op"
                                ],
                                "additionalProperties": true
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Steps along connections, each keeping only the cards matching its conditions"
              },
              "show": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "path",
                      "end"
                    ],
                    "description": "\"path\" (default) returns the cards from every step, \"end\" only the last step's"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "start"
            ],
            "additionalProperties": true,
            "description": "Replaces which cards the view shows"
          },
          {
            "type": "null"
          }
        ]
      },
      "settings": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "hidden": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Table: property columns to leave out. The Title column always shows"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sort": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "property": {
                            "type": "string"
                          },
                          "descending": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "property"
                        ],
                        "additionalProperties": true,
                        "description": "Table and board: sort cards by this property, or \"Title\". Left out, cards keep the order they read in on the canvas"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "calcs": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string",
                          "enum": [
                            "count",
                            "filled",
                            "empty",
                            "checked",
                            "sum",
                            "avg",
                            "min",
                            "max"
                          ]
                        },
                        "description": "Table: what each column's footer works out, by property name or \"Title\". count, filled and empty work on any column, checked on checkboxes, and sum, avg, min and max on numbers. Title only takes count"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupBy": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "Board: the select or checkbox property whose values are the columns. Left out, the canvas's first one"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hiddenGroups": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Board: columns to leave out, by value: a select option, \"\" for cards with none, or \"true\" and \"false\" for a checkbox"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cardProperties": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Board: the properties each card shows. Left out, every property the card has a value for"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cardText": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "description": "Board: whether cards show the start of their document. Default true"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rowGroupBy": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "Table: group rows into sections by this property. Board: split the columns into rows (sub-groups) by it. A select, checkbox, text or person property, or Frame"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hiddenRowGroups": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Groups to leave out, by value: as hiddenGroups, a text value, or a person's account id"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "collapsedRowGroups": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Groups folded down to their heading, by value as hiddenRowGroups"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "Settings to change, as in views_create. Null clears one"
          },
          {
            "type": "null"
          }
        ]
      },
      "isDefault": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "true makes the canvas open in this view for everyone; false, if it does, makes it open in Everything again"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "viewId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "$ref": "#/$defs/View"
  },
  "definitions": {
    "ViewSettings": {
      "type": "object",
      "properties": {
        "hidden": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Table: property columns to leave out. The Title column always shows"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string"
                },
                "descending": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "property"
              ],
              "additionalProperties": true,
              "description": "Table and board: sort cards by this property, or \"Title\". Left out, cards keep the order they read in on the canvas"
            },
            {
              "type": "null"
            }
          ]
        },
        "calcs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "count",
                  "filled",
                  "empty",
                  "checked",
                  "sum",
                  "avg",
                  "min",
                  "max"
                ]
              },
              "description": "Table: what each column's footer works out, by property name or \"Title\". count, filled and empty work on any column, checked on checkboxes, and sum, avg, min and max on numbers. Title only takes count"
            },
            {
              "type": "null"
            }
          ]
        },
        "groupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Board: the select or checkbox property whose values are the columns. Left out, the canvas's first one"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: columns to leave out, by value: a select option, \"\" for cards with none, or \"true\" and \"false\" for a checkbox"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardProperties": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Board: the properties each card shows. Left out, every property the card has a value for"
            },
            {
              "type": "null"
            }
          ]
        },
        "cardText": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Board: whether cards show the start of their document. Default true"
            },
            {
              "type": "null"
            }
          ]
        },
        "rowGroupBy": {
          "anyOf": [
            {
              "type": "string",
              "description": "Table: group rows into sections by this property. Board: split the columns into rows (sub-groups) by it. A select, checkbox, text or person property, or Frame"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiddenRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups to leave out, by value: as hiddenGroups, a text value, or a person's account id"
            },
            {
              "type": "null"
            }
          ]
        },
        "collapsedRowGroups": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Groups folded down to their heading, by value as hiddenRowGroups"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true
    },
    "View": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "layout": {
          "type": "string",
          "enum": [
            "canvas",
            "table",
            "board",
            "document"
          ]
        },
        "isDefault": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "The canvas opens in this view for everyone"
            },
            {
              "type": "null"
            }
          ]
        },
        "query": {
          "type": "object",
          "properties": {
            "start": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "node"
                      ]
                    },
                    "nodeId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "nodeId"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "set"
                      ]
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "property": {
                            "type": "string",
                            "description": "A property name, or \"Title\" for the card's label"
                          },
                          "op": {
                            "type": "string",
                            "enum": [
                              "=",
                              "≠",
                              ">",
                              "≥",
                              "<",
                              "≤",
                              "is",
                              "is not",
                              "contains",
                              "before",
                              "after",
                              "set",
                              "empty",
                              "checked",
                              "unchecked"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "property",
                          "op"
                        ],
                        "additionalProperties": true
                      }
                    }
                  },
                  "required": [
                    "type",
                    "where"
                  ],
                  "additionalProperties": true
                }
              ],
              "description": "Start from one card, or from every card on the canvas matching all the conditions (none = every card)"
            },
            "hops": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "edge": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Only follow connections with this label; leave out to follow any"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "direction": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "out",
                              "in",
                              "any"
                            ],
                            "description": "For one-way connections: \"out\" follows the arrow, \"in\" goes against it. Default \"any\""
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "where": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "property": {
                                  "type": "string",
                                  "description": "A property name, or \"Title\" for the card's label"
                                },
                                "op": {
                                  "type": "string",
                                  "enum": [
                                    "=",
                                    "≠",
                                    ">",
                                    "≥",
                                    "<",
                                    "≤",
                                    "is",
                                    "is not",
                                    "contains",
                                    "before",
                                    "after",
                                    "set",
                                    "empty",
                                    "checked",
                                    "unchecked"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "property",
                                "op"
                              ],
                              "additionalProperties": true
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Steps along connections, each keeping only the cards matching its conditions"
            },
            "show": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "path",
                    "end"
                  ],
                  "description": "\"path\" (default) returns the cards from every step, \"end\" only the last step's"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "start"
          ],
          "additionalProperties": true,
          "description": "Which cards the view shows. A document view has none"
        },
        "settings": {
          "$ref": "#/$defs/ViewSettings"
        }
      },
      "required": [
        "id",
        "name",
        "layout",
        "query",
        "settings"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ViewNotFoundEncoded"
    },
    "definitions": {
      "ViewNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ViewNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "viewId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "viewId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for views.update
curl --fail-with-body https://app.getpluto.co/api/v1/views.update \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","viewId":"YOUR_VIEW_ID","layout":"table","settings":{"hidden":["Notes"],"rowGroupBy":null},"isDefault":true}'
pluto views update --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","viewId":"YOUR_VIEW_ID","layout":"table","settings":{"hidden":["Notes"],"rowGroupBy":null},"isDefault":true}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "views_update",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "viewId": "YOUR_VIEW_ID",
      "layout": "table",
      "settings": {
        "hidden": [
          "Notes"
        ],
        "rowGroupBy": null
      },
      "isDefault": true
    }
  }
}

views.delete

Removes a saved view from a canvas, for everyone. The cards it showed stay on the canvas; only the view's own layout of them goes. A canvas that opened in it opens in Everything.

Writes data · Destructive: removes data that can't be brought back.

  • HTTP: POST /api/v1/views.delete
  • CLI: pluto views delete
  • MCP: views_delete

CLI flags: --workspace-id --canvas-id --view-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "viewId": {
        "type": "string",
        "description": "The view's id, from views_list"
      }
    },
    "required": [
      "workspaceId",
      "viewId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "string"
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ViewNotFoundEncoded"
    },
    "definitions": {
      "ViewNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ViewNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "viewId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "viewId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for views.delete
curl --fail-with-body https://app.getpluto.co/api/v1/views.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","viewId":"YOUR_VIEW_ID"}'
pluto views delete --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","viewId":"YOUR_VIEW_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "views_delete",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "viewId": "YOUR_VIEW_ID"
    }
  }
}

comments.list

Lists the comment threads on a canvas, newest activity first, with every reply. A thread is pinned to a card or to a point on the canvas. Resolved threads are included unless left out.

Read-only

  • HTTP: POST /api/v1/comments.list
  • CLI: pluto comments list
  • MCP: comments_list

CLI flags: --workspace-id --canvas-id --include-resolved Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "includeResolved": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "Include resolved threads (default true)"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "threads": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "canvasId": {
              "type": "string"
            },
            "card": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "label"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "null"
                }
              ]
            },
            "cardDeleted": {
              "type": "boolean"
            },
            "x": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            "y": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            "viewId": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "resolved": {
              "type": "boolean"
            },
            "resolvedBy": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "messages": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "authorId": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "mentions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "editedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "author",
                  "authorId",
                  "text",
                  "mentions",
                  "createdAt"
                ],
                "additionalProperties": true
              }
            }
          },
          "required": [
            "id",
            "canvasId",
            "card",
            "cardDeleted",
            "x",
            "y",
            "viewId",
            "resolved",
            "resolvedBy",
            "messages"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "threads"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.list
curl --fail-with-body https://app.getpluto.co/api/v1/comments.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
pluto comments list --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_list",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root"
    }
  }
}

comments.people

Lists the people who can open a workspace, with their ids: the people who can be @mentioned in comments and documents, and set on person properties.

Read-only

  • HTTP: POST /api/v1/comments.people
  • CLI: pluto comments people
  • MCP: comments_people

CLI flags: --workspace-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "people": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "people"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.people
curl --fail-with-body https://app.getpluto.co/api/v1/comments.people \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID"}'
pluto comments people --json '{"workspaceId":"YOUR_WORKSPACE_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_people",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID"
    }
  }
}

comments.create

Starts a comment thread, pinned to a card or to a point on a canvas. Anyone who can edit or comment on the workspace can. People in the thread and anyone @mentioned get an email.

Writes data

  • HTTP: POST /api/v1/comments.create
  • CLI: pluto comments create
  • MCP: comments_create

CLI flags: --workspace-id --canvas-id --card-id --x --y --view-id --text --mentions Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Pin it to this card on the canvas. It follows the card as it moves."
          },
          {
            "type": "null"
          }
        ]
      },
      "x": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string",
            "description": "For a comment on the canvas, not a card: the saved view it shows in. Leave out for the Everything view."
          },
          {
            "type": "null"
          }
        ]
      },
      "text": {
        "type": "string",
        "minLength": 1
      },
      "mentions": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Ids of people to @mention, from comments_people. Write their names with an @ in the text too. They get an email."
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "text"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "card": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "cardDeleted": {
        "type": "boolean"
      },
      "x": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "resolved": {
        "type": "boolean"
      },
      "resolvedBy": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "authorId": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "mentions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "createdAt": {
              "type": "string"
            },
            "editedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "author",
            "authorId",
            "text",
            "mentions",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "id",
      "canvasId",
      "card",
      "cardDeleted",
      "x",
      "y",
      "viewId",
      "resolved",
      "resolvedBy",
      "messages"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CannotCommentEncoded"
    },
    "definitions": {
      "CannotCommentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CannotComment"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CommentNotFoundEncoded"
    },
    "definitions": {
      "CommentNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CommentNotFound"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "threadId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.create
curl --fail-with-body https://app.getpluto.co/api/v1/comments.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","text":"Should this retry on failure?"}'
pluto comments create --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","cardId":"YOUR_CARD_ID","text":"Should this retry on failure?"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_create",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "cardId": "YOUR_CARD_ID",
      "text": "Should this retry on failure?"
    }
  }
}

comments.reply

Replies to a comment thread. Replying to a resolved thread opens it again.

Writes data

  • HTTP: POST /api/v1/comments.reply
  • CLI: pluto comments reply
  • MCP: comments_reply

CLI flags: --workspace-id --thread-id --text --mentions Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "threadId": {
        "type": "string",
        "description": "A comment thread's id, from comments_list"
      },
      "text": {
        "type": "string",
        "minLength": 1
      },
      "mentions": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Ids of people to @mention, from comments_people. Write their names with an @ in the text too. They get an email."
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "threadId",
      "text"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "card": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "cardDeleted": {
        "type": "boolean"
      },
      "x": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "resolved": {
        "type": "boolean"
      },
      "resolvedBy": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "authorId": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "mentions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "createdAt": {
              "type": "string"
            },
            "editedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "author",
            "authorId",
            "text",
            "mentions",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "id",
      "canvasId",
      "card",
      "cardDeleted",
      "x",
      "y",
      "viewId",
      "resolved",
      "resolvedBy",
      "messages"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CannotCommentEncoded"
    },
    "definitions": {
      "CannotCommentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CannotComment"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CommentNotFoundEncoded"
    },
    "definitions": {
      "CommentNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CommentNotFound"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "threadId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.reply
curl --fail-with-body https://app.getpluto.co/api/v1/comments.reply \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","text":"Yes, three times with backoff."}'
pluto comments reply --json '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","text":"Yes, three times with backoff."}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_reply",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "threadId": "YOUR_THREAD_ID",
      "text": "Yes, three times with backoff."
    }
  }
}

comments.resolve

Resolves a comment thread, which hides its pin, or opens it again with resolved: false.

Writes data

  • HTTP: POST /api/v1/comments.resolve
  • CLI: pluto comments resolve
  • MCP: comments_resolve

CLI flags: --workspace-id --thread-id --resolved Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "threadId": {
        "type": "string",
        "description": "A comment thread's id, from comments_list"
      },
      "resolved": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "false opens it again (default true)"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "threadId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "card": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "cardDeleted": {
        "type": "boolean"
      },
      "x": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "resolved": {
        "type": "boolean"
      },
      "resolvedBy": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "authorId": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "mentions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "createdAt": {
              "type": "string"
            },
            "editedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "author",
            "authorId",
            "text",
            "mentions",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "id",
      "canvasId",
      "card",
      "cardDeleted",
      "x",
      "y",
      "viewId",
      "resolved",
      "resolvedBy",
      "messages"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CannotCommentEncoded"
    },
    "definitions": {
      "CannotCommentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CannotComment"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CommentNotFoundEncoded"
    },
    "definitions": {
      "CommentNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CommentNotFound"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "threadId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.resolve
curl --fail-with-body https://app.getpluto.co/api/v1/comments.resolve \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID"}'
pluto comments resolve --json '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_resolve",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "threadId": "YOUR_THREAD_ID"
    }
  }
}

comments.edit

Changes the text of a comment. Only the person who wrote it can.

Writes data

  • HTTP: POST /api/v1/comments.edit
  • CLI: pluto comments edit
  • MCP: comments_edit

CLI flags: --workspace-id --thread-id --message-id --text --mentions Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "threadId": {
        "type": "string",
        "description": "A comment thread's id, from comments_list"
      },
      "messageId": {
        "type": "string"
      },
      "text": {
        "type": "string",
        "minLength": 1
      },
      "mentions": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Ids of people to @mention, from comments_people. Write their names with an @ in the text too. They get an email."
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "threadId",
      "messageId",
      "text"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "card": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "cardDeleted": {
        "type": "boolean"
      },
      "x": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "resolved": {
        "type": "boolean"
      },
      "resolvedBy": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "authorId": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "mentions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "createdAt": {
              "type": "string"
            },
            "editedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "author",
            "authorId",
            "text",
            "mentions",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "id",
      "canvasId",
      "card",
      "cardDeleted",
      "x",
      "y",
      "viewId",
      "resolved",
      "resolvedBy",
      "messages"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CannotCommentEncoded"
    },
    "definitions": {
      "CannotCommentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CannotComment"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CommentNotFoundEncoded"
    },
    "definitions": {
      "CommentNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CommentNotFound"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "threadId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotCommentAuthorEncoded"
    },
    "definitions": {
      "NotCommentAuthorEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotCommentAuthor"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "threadId",
          "messageId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.edit
curl --fail-with-body https://app.getpluto.co/api/v1/comments.edit \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","messageId":"YOUR_COMMENT_ID","text":"Should this retry on timeouts?"}'
pluto comments edit --json '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","messageId":"YOUR_COMMENT_ID","text":"Should this retry on timeouts?"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_edit",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "threadId": "YOUR_THREAD_ID",
      "messageId": "YOUR_COMMENT_ID",
      "text": "Should this retry on timeouts?"
    }
  }
}

comments.delete

Deletes a comment. Deleting the first comment in a thread, or leaving out messageId, deletes the whole thread. Only the person who wrote it can.

Writes data · Destructive: removes data that can't be brought back.

  • HTTP: POST /api/v1/comments.delete
  • CLI: pluto comments delete
  • MCP: comments_delete

CLI flags: --workspace-id --thread-id --message-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "threadId": {
        "type": "string",
        "description": "A comment thread's id, from comments_list"
      },
      "messageId": {
        "anyOf": [
          {
            "type": "string",
            "description": "The comment to delete. Leave out to delete the thread."
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "threadId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "string"
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CannotCommentEncoded"
    },
    "definitions": {
      "CannotCommentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CannotComment"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CommentNotFoundEncoded"
    },
    "definitions": {
      "CommentNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CommentNotFound"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "threadId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/NotCommentAuthorEncoded"
    },
    "definitions": {
      "NotCommentAuthorEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotCommentAuthor"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "threadId",
          "messageId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.delete
curl --fail-with-body https://app.getpluto.co/api/v1/comments.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","messageId":"YOUR_COMMENT_ID"}'
pluto comments delete --json '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","messageId":"YOUR_COMMENT_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_delete",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "threadId": "YOUR_THREAD_ID",
      "messageId": "YOUR_COMMENT_ID"
    }
  }
}

comments.move

Moves a comment thread's pin to another card or to a point on its canvas.

Writes data

  • HTTP: POST /api/v1/comments.move
  • CLI: pluto comments move
  • MCP: comments_move

CLI flags: --workspace-id --thread-id --card-id --x --y --view-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "threadId": {
        "type": "string",
        "description": "A comment thread's id, from comments_list"
      },
      "cardId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Pin it to this card on the canvas. It follows the card as it moves."
          },
          {
            "type": "null"
          }
        ]
      },
      "x": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string",
            "description": "For a comment on the canvas, not a card: the saved view it shows in. Leave out for the Everything view."
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "threadId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "card": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "cardDeleted": {
        "type": "boolean"
      },
      "x": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "y": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "viewId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "resolved": {
        "type": "boolean"
      },
      "resolvedBy": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "authorId": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "mentions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "createdAt": {
              "type": "string"
            },
            "editedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "author",
            "authorId",
            "text",
            "mentions",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "id",
      "canvasId",
      "card",
      "cardDeleted",
      "x",
      "y",
      "viewId",
      "resolved",
      "resolvedBy",
      "messages"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CannotCommentEncoded"
    },
    "definitions": {
      "CannotCommentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CannotComment"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CommentNotFoundEncoded"
    },
    "definitions": {
      "CommentNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CommentNotFound"
            ]
          },
          "threadId": {
            "type": "string"
          },
          "messageId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "threadId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CardNotFoundEncoded"
    },
    "definitions": {
      "CardNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CardNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          },
          "cardId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId",
          "cardId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for comments.move
curl --fail-with-body https://app.getpluto.co/api/v1/comments.move \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","cardId":"YOUR_OTHER_CARD_ID"}'
pluto comments move --json '{"workspaceId":"YOUR_WORKSPACE_ID","threadId":"YOUR_THREAD_ID","cardId":"YOUR_OTHER_CARD_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comments_move",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "threadId": "YOUR_THREAD_ID",
      "cardId": "YOUR_OTHER_CARD_ID"
    }
  }
}

history.list

Lists who changed what in a workspace, newest first: cards added, deleted, renamed or restyled, text edited, properties set, code changed, and connections added, removed or relabeled. Moves, resizes, views and comments aren't included. A run of edits to the same thing by the same person shows as one change. Use since to see what changed after a time, such as since you last looked, and before with the last change's time to read further back.

Read-only

  • HTTP: POST /api/v1/history.list
  • CLI: pluto history list
  • MCP: history_list

CLI flags: --workspace-id --canvas-id --card-id --since --before --limit Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Only changes on this canvas: \"root\" for the top canvas, or a card's id for its canvas. Default: the whole workspace"
          },
          {
            "type": "null"
          }
        ]
      },
      "cardId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Only changes to this card, including its connections"
          },
          {
            "type": "null"
          }
        ]
      },
      "since": {
        "anyOf": [
          {
            "type": "string",
            "description": "Only changes after this ISO time"
          },
          {
            "type": "null"
          }
        ]
      },
      "before": {
        "anyOf": [
          {
            "type": "string",
            "description": "Only changes before this ISO time, for the next page"
          },
          {
            "type": "null"
          }
        ]
      },
      "limit": {
        "anyOf": [
          {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "description": "How many changes, up to 200 (default 50)"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "changes": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Change"
        }
      },
      "more": {
        "type": "boolean",
        "description": "There are older changes; ask again with before set to the last change's time"
      }
    },
    "required": [
      "changes",
      "more"
    ],
    "additionalProperties": true
  },
  "definitions": {
    "Change": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "at": {
          "type": "string",
          "description": "When it happened, as an ISO time; the last edit of a run of edits to the same thing"
        },
        "by": {
          "type": "string",
          "description": "Who made it: \"Ada\", or \"Claude for Ada\" when an agent made it for Ada"
        },
        "actor": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "agent": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": true
        },
        "kind": {
          "type": "string",
          "enum": [
            "card.added",
            "card.deleted",
            "card.renamed",
            "card.restyled",
            "text.edited",
            "property.set",
            "code.set",
            "connection.added",
            "connection.deleted",
            "connection.relabeled"
          ]
        },
        "summary": {
          "type": "string",
          "description": "The change in words, like \"changed Status from Proposed to Building on “Payments”\""
        },
        "canvasId": {
          "type": "string"
        },
        "cardId": {
          "type": "string",
          "description": "The card, note, text box or frame changed; for a connection, its source"
        },
        "otherCardId": {
          "anyOf": [
            {
              "type": "string",
              "description": "For a connection, its target"
            },
            {
              "type": "null"
            }
          ]
        },
        "label": {
          "type": "string",
          "description": "The card's title at the time"
        },
        "otherLabel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "property": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "before": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "Infinity",
                        "-Infinity",
                        "NaN"
                      ]
                    }
                  ]
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "The value, title, label or start of the text before"
            },
            {
              "type": "null"
            }
          ]
        },
        "after": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "Infinity",
                        "-Infinity",
                        "NaN"
                      ]
                    }
                  ]
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "The value, title, label or start of the text after"
            },
            {
              "type": "null"
            }
          ]
        },
        "via": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "cardId": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "cardId",
                "label"
              ],
              "additionalProperties": true,
              "description": "When the person made it with another card's code, such as a button on a tracker card: that card"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "at",
        "by",
        "actor",
        "kind",
        "summary",
        "canvasId",
        "cardId",
        "label"
      ],
      "additionalProperties": true
    }
  }
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for history.list
curl --fail-with-body https://app.getpluto.co/api/v1/history.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","since":"2026-11-13T15:00:00Z"}'
pluto history list --json '{"workspaceId":"YOUR_WORKSPACE_ID","since":"2026-11-13T15:00:00Z"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "history_list",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "since": "2026-11-13T15:00:00Z"
    }
  }
}

webhooks.list

Lists your teams' webhooks: where each sends, its mention handle, how many canvases trigger it, and how its last request went. Secret header values are hidden.

Read-only

  • HTTP: POST /api/v1/webhooks.list
  • CLI: pluto webhooks list
  • MCP: webhooks_list

CLI flags: No action-specific flags. Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "not": {
      "type": "null"
    }
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "webhooks": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "enabled": {
              "type": "boolean"
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "secret": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "value",
                  "secret"
                ],
                "additionalProperties": true
              }
            },
            "body": {
              "type": "string",
              "enum": [
                "event",
                "custom"
              ]
            },
            "template": {
              "type": "string"
            },
            "mentionHandle": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "signingSecret": {
              "type": "string"
            },
            "disabledReason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "lastDelivery": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "at": {
                      "type": "string"
                    },
                    "event": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "status": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "request": {
                      "type": "string"
                    },
                    "response": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attempts": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "at",
                    "event",
                    "subject",
                    "status",
                    "ok",
                    "error",
                    "request",
                    "response",
                    "attempts",
                    "durationMs"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "null"
                }
              ]
            },
            "triggers": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            "teamId": {
              "type": "string"
            },
            "teamName": {
              "type": "string"
            },
            "creator": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "null"
                }
              ]
            },
            "canManage": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "url",
            "enabled",
            "headers",
            "body",
            "template",
            "mentionHandle",
            "signingSecret",
            "disabledReason",
            "lastDelivery",
            "triggers",
            "teamId",
            "teamName",
            "creator",
            "canManage",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "webhooks"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[]
Examples
Example format for webhooks.list
curl --fail-with-body https://app.getpluto.co/api/v1/webhooks.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{}'
pluto webhooks list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhooks_list",
    "arguments": {}
  }
}

webhooks.create

Adds a webhook to one of your teams (your own team unless you give teamId). It sends when a canvas trigger fires (webhookTriggers_create) or when its mentionHandle is @mentioned. Each request is signed with signingSecret in the Pluto-Signature header. Pro only.

Writes data

  • HTTP: POST /api/v1/webhooks.create
  • CLI: pluto webhooks create
  • MCP: webhooks_create

CLI flags: --name --url --enabled --headers --body --template --mention-handle --team-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "description": "What it is for, like \"Start the agent\""
      },
      "url": {
        "type": "string",
        "description": "Where to POST: a public https:// URL"
      },
      "enabled": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "Whether it sends. Defaults to true"
          },
          {
            "type": "null"
          }
        ]
      },
      "headers": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "secret": {
                  "type": "boolean"
                }
              },
              "required": [
                "name",
                "value",
                "secret"
              ],
              "additionalProperties": true
            },
            "description": "Extra request headers. Values of secret headers (Authorization, anything with token, key or secret in its name, or marked secret) are never shown again; send value null to keep a saved one"
          },
          {
            "type": "null"
          }
        ]
      },
      "body": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "event",
              "custom"
            ],
            "description": "\"event\" (the default) sends Pluto's JSON event; \"custom\" sends template"
          },
          {
            "type": "null"
          }
        ]
      },
      "template": {
        "anyOf": [
          {
            "type": "string",
            "description": "For a custom body: JSON with placeholders filled in for each event, like {\"text\": \"{{card.title}} is {{card.Status}}: {{card.url}}\"} or {\"text\": \"{{mention.text}} {{mention.url}}\"}. Placeholders go inside quotes, except {{event}}, the whole event as JSON"
          },
          {
            "type": "null"
          }
        ]
      },
      "mentionHandle": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A handle, like \"Claude\", that people can @mention in card documents and comments to send it, in the team's workspaces and others its creator can edit. null for none"
          },
          {
            "type": "null"
          }
        ]
      },
      "teamId": {
        "anyOf": [
          {
            "type": "string",
            "description": "The team it belongs to, from teams_list. Your own team when left out"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "name",
      "url"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "url": {
        "type": "string"
      },
      "enabled": {
        "type": "boolean"
      },
      "headers": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "secret": {
              "type": "boolean"
            }
          },
          "required": [
            "name",
            "value",
            "secret"
          ],
          "additionalProperties": true
        }
      },
      "body": {
        "type": "string",
        "enum": [
          "event",
          "custom"
        ]
      },
      "template": {
        "type": "string"
      },
      "mentionHandle": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "signingSecret": {
        "type": "string"
      },
      "disabledReason": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "lastDelivery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "at": {
                "type": "string"
              },
              "event": {
                "type": "string"
              },
              "subject": {
                "type": "string"
              },
              "status": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ok": {
                "type": "boolean"
              },
              "error": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "request": {
                "type": "string"
              },
              "response": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attempts": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "durationMs": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "at",
              "event",
              "subject",
              "status",
              "ok",
              "error",
              "request",
              "response",
              "attempts",
              "durationMs"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "triggers": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "teamId": {
        "type": "string"
      },
      "teamName": {
        "type": "string"
      },
      "creator": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "canManage": {
        "type": "boolean"
      },
      "createdAt": {
        "type": "string"
      }
    },
    "required": [
      "id",
      "name",
      "url",
      "enabled",
      "headers",
      "body",
      "template",
      "mentionHandle",
      "signingSecret",
      "disabledReason",
      "lastDelivery",
      "triggers",
      "teamId",
      "teamName",
      "creator",
      "canManage",
      "createdAt"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/TeamNotFoundEncoded"
    },
    "definitions": {
      "TeamNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TeamNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhooks.create
curl --fail-with-body https://app.getpluto.co/api/v1/webhooks.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"name":"Claude routine","url":"https://api.anthropic.com/v1/claude_code/routines/YOUR_ROUTINE_ID/fire","headers":[{"name":"Authorization","value":"Bearer YOUR_ROUTINE_TOKEN","secret":true}],"body":"custom","template":"{\"text\": \"{{mention.text}} {{card.url}}\"}","mentionHandle":"Claude"}'
pluto webhooks create --json '{"name":"Claude routine","url":"https://api.anthropic.com/v1/claude_code/routines/YOUR_ROUTINE_ID/fire","headers":[{"name":"Authorization","value":"Bearer YOUR_ROUTINE_TOKEN","secret":true}],"body":"custom","template":"{\"text\": \"{{mention.text}} {{card.url}}\"}","mentionHandle":"Claude"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhooks_create",
    "arguments": {
      "name": "Claude routine",
      "url": "https://api.anthropic.com/v1/claude_code/routines/YOUR_ROUTINE_ID/fire",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer YOUR_ROUTINE_TOKEN",
          "secret": true
        }
      ],
      "body": "custom",
      "template": "{\"text\": \"{{mention.text}} {{card.url}}\"}",
      "mentionHandle": "Claude"
    }
  }
}

webhooks.update

Changes a webhook you made, or any of your team's webhooks if you're its admin. Leave out what stays the same. Turning one back on that turned itself off starts its failure count again.

Writes data

  • HTTP: POST /api/v1/webhooks.update
  • CLI: pluto webhooks update
  • MCP: webhooks_update

CLI flags: --webhook-id --name --url --enabled --headers --body --template --mention-handle Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "webhookId": {
        "type": "string",
        "description": "The webhook's id, from webhooks_list"
      },
      "name": {
        "anyOf": [
          {
            "type": "string",
            "description": "What it is for, like \"Start the agent\""
          },
          {
            "type": "null"
          }
        ]
      },
      "url": {
        "anyOf": [
          {
            "type": "string",
            "description": "Where to POST: a public https:// URL"
          },
          {
            "type": "null"
          }
        ]
      },
      "enabled": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "Whether it sends. Defaults to true"
          },
          {
            "type": "null"
          }
        ]
      },
      "headers": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "secret": {
                  "type": "boolean"
                }
              },
              "required": [
                "name",
                "value",
                "secret"
              ],
              "additionalProperties": true
            },
            "description": "Extra request headers. Values of secret headers (Authorization, anything with token, key or secret in its name, or marked secret) are never shown again; send value null to keep a saved one"
          },
          {
            "type": "null"
          }
        ]
      },
      "body": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "event",
              "custom"
            ],
            "description": "\"event\" (the default) sends Pluto's JSON event; \"custom\" sends template"
          },
          {
            "type": "null"
          }
        ]
      },
      "template": {
        "anyOf": [
          {
            "type": "string",
            "description": "For a custom body: JSON with placeholders filled in for each event, like {\"text\": \"{{card.title}} is {{card.Status}}: {{card.url}}\"} or {\"text\": \"{{mention.text}} {{mention.url}}\"}. Placeholders go inside quotes, except {{event}}, the whole event as JSON"
          },
          {
            "type": "null"
          }
        ]
      },
      "mentionHandle": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A handle, like \"Claude\", that people can @mention in card documents and comments to send it, in the team's workspaces and others its creator can edit. null for none"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "webhookId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "url": {
        "type": "string"
      },
      "enabled": {
        "type": "boolean"
      },
      "headers": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "secret": {
              "type": "boolean"
            }
          },
          "required": [
            "name",
            "value",
            "secret"
          ],
          "additionalProperties": true
        }
      },
      "body": {
        "type": "string",
        "enum": [
          "event",
          "custom"
        ]
      },
      "template": {
        "type": "string"
      },
      "mentionHandle": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "signingSecret": {
        "type": "string"
      },
      "disabledReason": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "lastDelivery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "at": {
                "type": "string"
              },
              "event": {
                "type": "string"
              },
              "subject": {
                "type": "string"
              },
              "status": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ok": {
                "type": "boolean"
              },
              "error": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "request": {
                "type": "string"
              },
              "response": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attempts": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              "durationMs": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "at",
              "event",
              "subject",
              "status",
              "ok",
              "error",
              "request",
              "response",
              "attempts",
              "durationMs"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "triggers": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "teamId": {
        "type": "string"
      },
      "teamName": {
        "type": "string"
      },
      "creator": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": true
          },
          {
            "type": "null"
          }
        ]
      },
      "canManage": {
        "type": "boolean"
      },
      "createdAt": {
        "type": "string"
      }
    },
    "required": [
      "id",
      "name",
      "url",
      "enabled",
      "headers",
      "body",
      "template",
      "mentionHandle",
      "signingSecret",
      "disabledReason",
      "lastDelivery",
      "triggers",
      "teamId",
      "teamName",
      "creator",
      "canManage",
      "createdAt"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WebhookNotFoundEncoded"
    },
    "definitions": {
      "WebhookNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WebhookNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhooks.update
curl --fail-with-body https://app.getpluto.co/api/v1/webhooks.update \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"webhookId":"YOUR_WEBHOOK_ID","enabled":false}'
pluto webhooks update --json '{"webhookId":"YOUR_WEBHOOK_ID","enabled":false}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhooks_update",
    "arguments": {
      "webhookId": "YOUR_WEBHOOK_ID",
      "enabled": false
    }
  }
}

webhooks.delete

Deletes a webhook you made (or any of your team's, as its admin) and every canvas trigger that sends it.

Writes data

  • HTTP: POST /api/v1/webhooks.delete
  • CLI: pluto webhooks delete
  • MCP: webhooks_delete

CLI flags: --webhook-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "webhookId": {
        "type": "string",
        "description": "The webhook's id, from webhooks_list"
      }
    },
    "required": [
      "webhookId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "string"
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WebhookNotFoundEncoded"
    },
    "definitions": {
      "WebhookNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WebhookNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhooks.delete
curl --fail-with-body https://app.getpluto.co/api/v1/webhooks.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"webhookId":"YOUR_WEBHOOK_ID"}'
pluto webhooks delete --json '{"webhookId":"YOUR_WEBHOOK_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhooks_delete",
    "arguments": {
      "webhookId": "YOUR_WEBHOOK_ID"
    }
  }
}

webhookTriggers.list

Lists the webhook triggers in a workspace, or on one canvas: which webhook each sends, whose it is, and for which card changes. Anyone who can edit the workspace can see them.

Read-only

  • HTTP: POST /api/v1/webhookTriggers.list
  • CLI: pluto webhook-triggers list
  • MCP: webhookTriggers_list

CLI flags: --workspace-id --canvas-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Only this canvas's: \"root\" for the top canvas, or a card's id for its canvas"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "triggers": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "canvasId": {
              "type": "string"
            },
            "webhookId": {
              "type": "string"
            },
            "webhookName": {
              "type": "string"
            },
            "owner": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": true
            },
            "mine": {
              "type": "boolean"
            },
            "enabled": {
              "type": "boolean"
            },
            "events": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "created",
                  "updated",
                  "deleted"
                ]
              }
            },
            "conditions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "property": {
                    "type": "string",
                    "description": "A property name, or \"Title\" for the card's label"
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "=",
                      "≠",
                      ">",
                      "≥",
                      "<",
                      "≤",
                      "is",
                      "is not",
                      "contains",
                      "before",
                      "after",
                      "set",
                      "empty",
                      "checked",
                      "unchecked"
                    ]
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "property",
                  "op"
                ],
                "additionalProperties": true
              }
            },
            "mode": {
              "type": "string",
              "enum": [
                "enter",
                "every"
              ]
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "canvasId",
            "webhookId",
            "webhookName",
            "owner",
            "mine",
            "enabled",
            "events",
            "conditions",
            "mode",
            "createdAt"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "triggers"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhookTriggers.list
curl --fail-with-body https://app.getpluto.co/api/v1/webhookTriggers.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
pluto webhook-triggers list --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhookTriggers_list",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root"
    }
  }
}

webhookTriggers.create

Has a canvas send one of your webhooks when cards on it are created, updated or deleted, optionally only for cards matching conditions. Pro only.

Writes data

  • HTTP: POST /api/v1/webhookTriggers.create
  • CLI: pluto webhook-triggers create
  • MCP: webhookTriggers_create

CLI flags: --workspace-id --canvas-id --webhook-id --events --conditions --mode Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "canvasId": {
        "anyOf": [
          {
            "type": "string",
            "description": "Which canvas: \"root\" (the default) for the workspace's top canvas, or a card's id for that card's own canvas"
          },
          {
            "type": "null"
          }
        ]
      },
      "webhookId": {
        "type": "string",
        "description": "The webhook's id, from webhooks_list"
      },
      "events": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "created",
            "updated",
            "deleted"
          ]
        },
        "description": "Which changes to cards directly on the canvas send it: created, updated (a title or property changed) and deleted"
      },
      "conditions": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string",
                  "description": "A property name, or \"Title\" for the card's label"
                },
                "op": {
                  "type": "string",
                  "enum": [
                    "=",
                    "≠",
                    ">",
                    "≥",
                    "<",
                    "≤",
                    "is",
                    "is not",
                    "contains",
                    "before",
                    "after",
                    "set",
                    "empty",
                    "checked",
                    "unchecked"
                  ]
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "property",
                "op"
              ],
              "additionalProperties": true
            },
            "description": "Only cards that match all of these, as in graph_query. Person values are names. A deleted card is checked as it was"
          },
          {
            "type": "null"
          }
        ]
      },
      "mode": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "enter",
              "every"
            ],
            "description": "With conditions: \"enter\" (the default) sends an update once, when a card starts to match; \"every\" sends on every change while it matches"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "webhookId",
      "events"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "webhookId": {
        "type": "string"
      },
      "webhookName": {
        "type": "string"
      },
      "owner": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": true
      },
      "mine": {
        "type": "boolean"
      },
      "enabled": {
        "type": "boolean"
      },
      "events": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "created",
            "updated",
            "deleted"
          ]
        }
      },
      "conditions": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "property": {
              "type": "string",
              "description": "A property name, or \"Title\" for the card's label"
            },
            "op": {
              "type": "string",
              "enum": [
                "=",
                "≠",
                ">",
                "≥",
                "<",
                "≤",
                "is",
                "is not",
                "contains",
                "before",
                "after",
                "set",
                "empty",
                "checked",
                "unchecked"
              ]
            },
            "value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "property",
            "op"
          ],
          "additionalProperties": true
        }
      },
      "mode": {
        "type": "string",
        "enum": [
          "enter",
          "every"
        ]
      },
      "createdAt": {
        "type": "string"
      }
    },
    "required": [
      "id",
      "canvasId",
      "webhookId",
      "webhookName",
      "owner",
      "mine",
      "enabled",
      "events",
      "conditions",
      "mode",
      "createdAt"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/CanvasNotFoundEncoded"
    },
    "definitions": {
      "CanvasNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CanvasNotFound"
            ]
          },
          "canvasId": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "canvasId"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WebhookNotFoundEncoded"
    },
    "definitions": {
      "WebhookNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WebhookNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhookTriggers.create
curl --fail-with-body https://app.getpluto.co/api/v1/webhookTriggers.create \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","webhookId":"YOUR_WEBHOOK_ID","events":["created","updated"],"conditions":[{"property":"Agent status","op":"is","value":"Send to agent"}]}'
pluto webhook-triggers create --json '{"workspaceId":"YOUR_WORKSPACE_ID","canvasId":"root","webhookId":"YOUR_WEBHOOK_ID","events":["created","updated"],"conditions":[{"property":"Agent status","op":"is","value":"Send to agent"}]}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhookTriggers_create",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "canvasId": "root",
      "webhookId": "YOUR_WEBHOOK_ID",
      "events": [
        "created",
        "updated"
      ],
      "conditions": [
        {
          "property": "Agent status",
          "op": "is",
          "value": "Send to agent"
        }
      ]
    }
  }
}

webhookTriggers.update

Changes a trigger you made: its webhook (one of yours), events, conditions or mode. Leave out what stays the same.

Writes data

  • HTTP: POST /api/v1/webhookTriggers.update
  • CLI: pluto webhook-triggers update
  • MCP: webhookTriggers_update

CLI flags: --workspace-id --trigger-id --webhook-id --events --conditions --mode Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "triggerId": {
        "type": "string",
        "description": "The trigger's id, from webhookTriggers_list"
      },
      "webhookId": {
        "anyOf": [
          {
            "type": "string",
            "description": "The webhook's id, from webhooks_list"
          },
          {
            "type": "null"
          }
        ]
      },
      "events": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "created",
                "updated",
                "deleted"
              ]
            },
            "description": "Which changes to cards directly on the canvas send it: created, updated (a title or property changed) and deleted"
          },
          {
            "type": "null"
          }
        ]
      },
      "conditions": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string",
                  "description": "A property name, or \"Title\" for the card's label"
                },
                "op": {
                  "type": "string",
                  "enum": [
                    "=",
                    "≠",
                    ">",
                    "≥",
                    "<",
                    "≤",
                    "is",
                    "is not",
                    "contains",
                    "before",
                    "after",
                    "set",
                    "empty",
                    "checked",
                    "unchecked"
                  ]
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "property",
                "op"
              ],
              "additionalProperties": true
            },
            "description": "Only cards that match all of these, as in graph_query. Person values are names. A deleted card is checked as it was"
          },
          {
            "type": "null"
          }
        ]
      },
      "mode": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "enter",
              "every"
            ],
            "description": "With conditions: \"enter\" (the default) sends an update once, when a card starts to match; \"every\" sends on every change while it matches"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "triggerId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "canvasId": {
        "type": "string"
      },
      "webhookId": {
        "type": "string"
      },
      "webhookName": {
        "type": "string"
      },
      "owner": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": true
      },
      "mine": {
        "type": "boolean"
      },
      "enabled": {
        "type": "boolean"
      },
      "events": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "created",
            "updated",
            "deleted"
          ]
        }
      },
      "conditions": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "property": {
              "type": "string",
              "description": "A property name, or \"Title\" for the card's label"
            },
            "op": {
              "type": "string",
              "enum": [
                "=",
                "≠",
                ">",
                "≥",
                "<",
                "≤",
                "is",
                "is not",
                "contains",
                "before",
                "after",
                "set",
                "empty",
                "checked",
                "unchecked"
              ]
            },
            "value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "property",
            "op"
          ],
          "additionalProperties": true
        }
      },
      "mode": {
        "type": "string",
        "enum": [
          "enter",
          "every"
        ]
      },
      "createdAt": {
        "type": "string"
      }
    },
    "required": [
      "id",
      "canvasId",
      "webhookId",
      "webhookName",
      "owner",
      "mine",
      "enabled",
      "events",
      "conditions",
      "mode",
      "createdAt"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/TriggerNotFoundEncoded"
    },
    "definitions": {
      "TriggerNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TriggerNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WebhookNotFoundEncoded"
    },
    "definitions": {
      "WebhookNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WebhookNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/ProRequiredEncoded"
    },
    "definitions": {
      "ProRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "ProRequired"
            ]
          },
          "feature": {
            "type": "string",
            "enum": [
              "cloud-workspaces",
              "elements",
              "webhooks",
              "members",
              "guests"
            ]
          },
          "upgradeUrl": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "feature",
          "upgradeUrl"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhookTriggers.update
curl --fail-with-body https://app.getpluto.co/api/v1/webhookTriggers.update \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","triggerId":"YOUR_TRIGGER_ID","mode":"every"}'
pluto webhook-triggers update --json '{"workspaceId":"YOUR_WORKSPACE_ID","triggerId":"YOUR_TRIGGER_ID","mode":"every"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhookTriggers_update",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "triggerId": "YOUR_TRIGGER_ID",
      "mode": "every"
    }
  }
}

webhookTriggers.delete

Stops a canvas sending a webhook. Anyone who can edit the workspace can remove any trigger.

Writes data

  • HTTP: POST /api/v1/webhookTriggers.delete
  • CLI: pluto webhook-triggers delete
  • MCP: webhookTriggers_delete

CLI flags: --workspace-id --trigger-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "triggerId": {
        "type": "string",
        "description": "The trigger's id, from webhookTriggers_list"
      }
    },
    "required": [
      "workspaceId",
      "triggerId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "deleted": {
        "type": "string"
      }
    },
    "required": [
      "deleted"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/TriggerNotFoundEncoded"
    },
    "definitions": {
      "TriggerNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TriggerNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for webhookTriggers.delete
curl --fail-with-body https://app.getpluto.co/api/v1/webhookTriggers.delete \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","triggerId":"YOUR_TRIGGER_ID"}'
pluto webhook-triggers delete --json '{"workspaceId":"YOUR_WORKSPACE_ID","triggerId":"YOUR_TRIGGER_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhookTriggers_delete",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "triggerId": "YOUR_TRIGGER_ID"
    }
  }
}

library.list

Lists the card library: cards whose code is written once and used on many cards. It has Pluto's own cards (poll, checklist, rating, approval, timer, countdown, progress, bookmark and control), this workspace's library, and your teams' libraries, which you can use in all your workspaces. Put one on a card with cards_useLibraryCard, or make a new card from one with cards_create's libraryCard.

Read-only

  • HTTP: POST /api/v1/library.list
  • CLI: pluto library list
  • MCP: library_list

CLI flags: --workspace-id --with-code Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "withCode": {
        "anyOf": [
          {
            "type": "boolean",
            "description": "Include each card's code"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "cards": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "ref": {
              "type": "string",
              "description": "What cards_useLibraryCard and cards_create take"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "library": {
              "type": "string",
              "enum": [
                "pluto",
                "workspace",
                "account"
              ],
              "description": "\"pluto\" for Pluto's own cards, \"workspace\" for this workspace's library (anyone who can edit it can change them), \"account\" for a person's own library (only they can change them)"
            },
            "owner": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "Whose library an account card is from"
                },
                {
                  "type": "null"
                }
              ]
            },
            "usedBy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ]
            },
            "code": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "Its code, when asked for with withCode"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "ref",
            "name",
            "description",
            "library",
            "usedBy"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "cards"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for library.list
curl --fail-with-body https://app.getpluto.co/api/v1/library.list \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID"}'
pluto library list --json '{"workspaceId":"YOUR_WORKSPACE_ID"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "library_list",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID"
    }
  }
}

library.save

Adds a card to the card library, or changes one, with code as cards_setCode takes it. Save to this workspace's library (default) for everyone who can edit it, or to a team's library (your own team unless you give teamId) to use in all your workspaces. Give ref to change a library card you can change; every card using it gets the change. Pluto's own cards can't be changed.

Writes data

  • HTTP: POST /api/v1/library.save
  • CLI: pluto library save
  • MCP: library_save

CLI flags: --workspace-id --ref --name --description --code --to --team-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "The workspace's id, from workspaces_list"
      },
      "ref": {
        "anyOf": [
          {
            "type": "string",
            "description": "The library card to change; leave out to add one"
          },
          {
            "type": "null"
          }
        ]
      },
      "name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60,
        "description": "Its name in the library"
      },
      "description": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 200,
            "description": "What it's for, in a sentence"
          },
          {
            "type": "null"
          }
        ]
      },
      "code": {
        "type": "string",
        "description": "The component's TSX source, as for cards_setCode"
      },
      "to": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "workspace",
              "mine"
            ],
            "description": "Where a new card goes: \"workspace\" (default) or \"mine\" for a team's library"
          },
          {
            "type": "null"
          }
        ]
      },
      "teamId": {
        "anyOf": [
          {
            "type": "string",
            "description": "With to \"mine\": the team's library, from teams_list. Your own team when left out"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "workspaceId",
      "name",
      "code"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "ref": {
        "type": "string",
        "description": "What cards_useLibraryCard and cards_create take"
      },
      "name": {
        "type": "string"
      },
      "description": {
        "type": "string"
      },
      "library": {
        "type": "string",
        "enum": [
          "pluto",
          "workspace",
          "account"
        ],
        "description": "\"pluto\" for Pluto's own cards, \"workspace\" for this workspace's library (anyone who can edit it can change them), \"account\" for a person's own library (only they can change them)"
      },
      "owner": {
        "anyOf": [
          {
            "type": "string",
            "description": "Whose library an account card is from"
          },
          {
            "type": "null"
          }
        ]
      },
      "usedBy": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string",
            "enum": [
              "Infinity",
              "-Infinity",
              "NaN"
            ]
          }
        ]
      },
      "code": {
        "anyOf": [
          {
            "type": "string",
            "description": "Its code, when asked for with withCode"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "ref",
      "name",
      "description",
      "library",
      "usedBy"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceNotFoundEncoded"
    },
    "definitions": {
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/WorkspaceReadOnlyEncoded"
    },
    "definitions": {
      "WorkspaceReadOnlyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceReadOnly"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/TeamNotFoundEncoded"
    },
    "definitions": {
      "TeamNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TeamNotFound"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for library.save
curl --fail-with-body https://app.getpluto.co/api/v1/library.save \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","name":"Risk","description":"Likelihood times impact","code":"export default function Risk() { return null }"}'
pluto library save --json '{"workspaceId":"YOUR_WORKSPACE_ID","name":"Risk","description":"Likelihood times impact","code":"export default function Risk() { return null }"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "library_save",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "name": "Risk",
      "description": "Likelihood times impact",
      "code": "export default function Risk() { return null }"
    }
  }
}

feedback.send

Sends feedback about Pluto itself to the people who make it: a tool that failed or did something unexpected, an error that didn't explain itself, something missing that you or the person needed, or something that worked well. It goes with your name as the agent and the account's name and email, so they can follow up. This is not for the person's own notes, which belong in their workspaces. Say what you were trying to do, what happened and what you expected. Agents can send 5 messages an hour for each account, so put several points in one message.

Writes data

  • HTTP: POST /api/v1/feedback.send
  • CLI: pluto feedback send
  • MCP: feedback_send

CLI flags: --message --workspace-id Every action command also accepts --json for the whole input.

Schema

Input

Use this object as the HTTP JSON body or MCP arguments. For CLI flags, camelCase field names become kebab-case. Required fields are listed in required.

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "maxLength": 5000,
        "description": "The feedback, in Markdown. The first line becomes its title"
      },
      "workspaceId": {
        "anyOf": [
          {
            "type": "string",
            "description": "The workspace it's about, if any"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "message"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Output

{
  "dialect": "draft-2020-12",
  "schema": {
    "type": "object",
    "properties": {
      "sent": {
        "type": "boolean"
      }
    },
    "required": [
      "sent"
    ],
    "additionalProperties": true
  },
  "definitions": {}
}

Declared action errors

Authentication, Pro, and token-scope checks can also fail before an action runs. These are the errors declared by this action, not an exhaustive list of transport failures.

[
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/InvalidRequestEncoded"
    },
    "definitions": {
      "InvalidRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InvalidRequest"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "reason"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/FeedbackLimitReachedEncoded"
    },
    "definitions": {
      "FeedbackLimitReachedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "FeedbackLimitReached"
            ]
          },
          "perHour": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          },
          "retryAfterSeconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ]
          }
        },
        "required": [
          "_tag",
          "perHour",
          "retryAfterSeconds"
        ],
        "additionalProperties": true
      }
    }
  },
  {
    "dialect": "draft-2020-12",
    "schema": {
      "$ref": "#/$defs/FeedbackNotSentEncoded"
    },
    "definitions": {
      "FeedbackNotSentEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "FeedbackNotSent"
            ]
          }
        },
        "required": [
          "_tag"
        ],
        "additionalProperties": true
      }
    }
  }
]
Examples
Example format for feedback.send
curl --fail-with-body https://app.getpluto.co/api/v1/feedback.send \
  -H "Authorization: Bearer $PLUTO_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"workspaceId":"YOUR_WORKSPACE_ID","message":"cards_create put a card on top of another\nI gave it x and y, and it moved them. I expected it to keep them."}'
pluto feedback send --json '{"workspaceId":"YOUR_WORKSPACE_ID","message":"cards_create put a card on top of another\nI gave it x and y, and it moved them. I expected it to keep them."}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "feedback_send",
    "arguments": {
      "workspaceId": "YOUR_WORKSPACE_ID",
      "message": "cards_create put a card on top of another\nI gave it x and y, and it moved them. I expected it to keep them."
    }
  }
}