word_cloud
Visualize term frequencies as a DocuSky WordCloudLite cloud from term-weight pairs you already counted, returning a web URL for inline or linked display.
Instructions
Draw a word cloud of term frequencies in DocuSky's own WordCloudLite tool.
Takes numbers you already have and turns them into a DocuSky visualization:
tag counts from tag_analysis, a facet distribution from post_classification
(its value / docCount pairs), or terms you counted yourself in text from
get_document. This tool does no counting and no searching of its own.
Returns a webUrl to the rendered cloud — MCP Apps-capable hosts show it
inline, other hosts can offer it as a link. The rendered page also has
buttons for bubble, top-10 bar and table views of the same data, plus Save.
WordCloudLite draws a random subset of a large term list, so pass roughly 20-40 terms when every word should appear.
Args: terms: Term -> weight, e.g. {"針灸": 120, "湯液": 48}. Weights must be positive; non-integers are rescaled proportionally. Commas and semicolons in a term are replaced with spaces (the tool's URL format uses them as separators). max_terms: Keep at most this many of the heaviest terms (default 150). A very long list is also trimmed further to fit DocuSky's URL limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | Yes | ||
| max_terms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |