| { |
| "name": "get-design-content", |
| "description": "Get the text content of a doc, presentation, whiteboard, social media post, and other designs in Canva (except sheets, as it does not return data in sheets). Use this when you only need to read text content without making changes. IMPORTANT: If the user wants to edit, update, change, translate, or fix content, use `start-editing-transaction` instead as it shows content AND enables editing. You must provide the design ID, which you can find with the `search-designs` tool. When given a URL to a Canva design, you can extract the design ID from the URL. Do not use web search to get the content of a design as the content is not accessible to the public. Example URL: https://www.canva.com/design/{design_id}.", |
| "inputSchema": { |
| "type": "object", |
| "properties": { |
| "design_id": { |
| "type": "string", |
| "minLength": 11, |
| "maxLength": 11, |
| "pattern": "^D[a-zA-Z0-9_-]+$", |
| "description": "ID of the design to get content of" |
| }, |
| "content_types": { |
| "type": "array", |
| "items": { |
| "type": "string", |
| "enum": [ |
| "richtexts" |
| ] |
| }, |
| "minItems": 1, |
| "description": "Types of content to retrieve. Currently, only `richtexts` is supported so use the `start-editing-transaction` tool to get other content types" |
| }, |
| "pages": { |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "minimum": 1, |
| "maximum": 500 |
| }, |
| "description": "Optional array of page numbers to get content from. If not specified, content from all pages will be returned. Pages are indexed using one-based numbering, so the first page in a design has the index value `1`." |
| }, |
| "user_intent": { |
| "type": "string", |
| "description": "Mandatory description of what the user is trying to accomplish with this tool call. This should always be provided by LLM clients. Please keep it concise (255 characters or less recommended)." |
| } |
| }, |
| "required": [ |
| "design_id", |
| "content_types" |
| ], |
| "additionalProperties": false, |
| "$schema": "http://json-schema.org/draft-07/schema#" |
| } |
| } |