TOOL API
create_ smartcanvas_ by_ mdx
Creates a rich, formatted online smart canvas document in Tencent Docs; use it as the default tool for creating documents. Before generating MDX content, read the mdx_references spec and self-check the output against it item by item (frontmatter, indentation, component syntax, attributes, color tokens); only use markdown when the user explicitly asks for it. Never use http/https image URLs in either format: upload each image with upload_image first and use the returned image_id (cover: image_id, body: <Image src='image_id' alt='description' />, or  in markdown); if an image is too large to upload, compress it locally and retry rather than falling back to a URL. If both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user choose the target account before invoking this tool.
Call information
- Tool slug
- tencent-docs.create_smartcanvas_by_mdx
- Provider
- Tencent Docs
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
content_format内容格式。仅值为 markdown(不区分大小写)时按 Markdown 处理;其他任意值(包括空值、mdx 和非枚举值)均按 MDX 处理
mdxrequired文档正文内容,不能为空。默认按 MDX 处理;content_format 为 markdown 时传标准 Markdown。图片可使用 upload_image 返回的 image_id,也支持 http/https 外链:服务端会下载并转存,单张外链图片最大 10MB
titlerequired文档标题,不能为空,最长 36 个字符(按 rune 计)。参数名必须为 title,不要使用 doc_title、name、file_name 等其他名称