{"id":129811,"plugin_id":"plugin_connector_68df33b1a2d081918778431a9cfca8ba","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-12-02T06:12:03.994Z","digest":"e275d3aef158240d7bf27b73e9c1a86c28841782140cc05cad4176ff2404486d","against":null,"payload":{"description":"Use the Canva CLI (`canva api`) for Canva REST API workflows with local files, scripts, and coding agents. Use when the request needs direct, programmatic work with Canva designs, folders, assets, exports, or other REST API resources.","included_files":[],"name":"canva-cli","skill_md_contents":"---\nname: canva-cli\ndescription: Use the Canva CLI (`canva api`) for Canva REST API workflows with\n  local files, scripts, and coding agents. Use when the request needs direct,\n  programmatic work with Canva designs, folders, assets, exports, or other REST\n  API resources.\n---\n\n# Canva CLI\n\nUse the Canva CLI when a request requires direct, programmatic interaction with\nCanva or local files. Do not use it for purely conversational design work that\nis better handled through Canva's AI-assisted workflows.\n\n## Set up the CLI when needed\n\nBefore using the CLI, check whether `canva --version` succeeds.\n\nIf the CLI is unavailable, explain that it requires Node.js v24 and npm v11.\nInstall it only when the user has explicitly requested or approved installation:\n\n```sh\nnpm install -g @canva/cli@latest\n```\n\nBefore accessing Canva resources, ensure the intended user is logged in:\n\n```sh\ncanva login\n```\n\nLogin opens a browser authorization flow and requires the user to approve\naccess. In a remote or headless environment, use canva login --mode manual.\nDo not request, print, inspect, or copy the locally stored auth token.\nWhen multiple Canva accounts are relevant, require the user to identify the\nintended profile before running commands against it. Use --profile <name> for\na one-off command rather than changing the active profile unless the user asks\nto switch it.\n\n## Find the right operation\n\nDo not guess commands, flags, or request shapes.\n\n- Start with `canva api --help`, then narrow by resource group.\n- Use `canva api <group> <command> --help` to inspect flags.\n- Use `canva api describe <group> <command>` when the command contract is\n  needed as JSON.\n- CLI commands follow REST API operation names, not URL paths.\n- Prefer documented flags. Use `--body @file.json` only when a nested JSON\n  payload cannot be expressed with flags.\n\n## Authenticate and validate\n\n- Commands act as the logged-in Canva account. Run `canva login` when needed.\n- If a request returns `MISSING_SCOPE`, log in again before retrying.\n- Before a command that creates, changes, or uploads content, run it with\n  `--dry-run` when available to validate its arguments and login without making\n  the API request.\n- Ensure the target design, folder, asset, or other resource is unambiguous\n  before making a state-changing request.\n\n## Interpret results\n\nWhen a request reaches the API, the CLI returns one JSON object on standard\noutput.\n\n- Check `ok` before treating a request as successful.\n- On success, use `data` for the API response.\n- On failure, report `error.code`, `error.message`, and relevant\n  `meta.status`; do not invent a recovery.\n- Consider `next` as a possible follow-up, such as logging in, but verify the\n  suggested command is appropriate before running it.\n- If invalid arguments or unknown flags produce a usage error, consult\n  `--help` rather than retrying with guessed flags.\n\n## Handle asynchronous operations\n\nSome operations, including asset uploads, return a job instead of a completed\nresource.\n\n- Save the returned job ID.\n- Poll the corresponding “Get job” command after a short delay.\n- While the status is `in_progress`, use exponential backoff between polls:\n  increase the wait after each unsuccessful poll, respect the endpoint’s rate\n  limits, and never issue concurrent or tight-loop polls.\n- Stop polling immediately when the job becomes `success` or `failed`.\n- On success, return the resulting resource ID and useful links.\n- On failure, return the job error and stop; do not retry the original request\n  unless the user asks.\n- If the job remains in progress beyond the available task time, report its job\n  ID and latest status so it can be checked again later.\n\n## Report back\n\nSummarize the action, exact target, result, and useful IDs or Canva URLs.\nNever include credentials, access tokens, or unnecessary raw response data.\n\n## Reference\n\n- [Canva CLI](https://www.canva.dev/docs/apps/canva-cli/) — installation,\n  authentication, profiles, and app-development commands.\n- [Making REST API requests from the CLI](https://www.canva.dev/docs/apps/canva-cli/making-rest-api-requests/) —\n  `canva api` command discovery, inputs, response format, and async jobs."},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}