create_wordcloud_from_file
Generate word cloud visualizations directly from document files (PDF, Word, TXT, MD) by extracting text and creating customizable visual representations with themes, shapes, and multiple output formats.
Instructions
从文档文件直接生成词云图(提取文字 + 生成词云图的组合操作)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>",
"fileType": "<fileType>"
},
"name": "create_wordcloud_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 文档文件的路径 | |
| fileType | Yes | 文件类型 | |
| theme | No | 词云图主题色彩 | default |
| shape | No | 词云图形状 | rectangle |
| wordGap | No | 文字间隙 | |
| fontSize | No | 文字大小范围 | |
| angleRange | No | 角度范围 | |
| angleStep | No | 角度步长 | |
| outputPath | No | 输出文件路径(支持绝对路径和相对路径) | ./wordcloud.svg |
| format | No | 输出格式(svg、png、jpg、jpeg、webp) | svg |
| backgroundColor | No | 背景颜色(十六进制颜色代码) | #ffffff |
| quality | No | JPG/WEBP 格式的质量设置(1-100) |