Make word cloud
make_word_cloudUse this when the user wants a word cloud, word art or tag cloud from text (survey answers, reviews, an article, notes) or from a list of words with weights, for example "make a word cloud of these comments". Takes text (up to 100,000 characters) or up to 500 word and weight pairs, plus max words (10 to 200), stop-word language (en, es, fr, de, it, pt or none), case rule, shape (rectangle or circle), orientation, colour set, font sizes and a seed. Returns the top words with counts, words left out and why, layout and PDF text checks, an interactive view, and SVG, PDF and CSV downloads. Does not read files or web pages, does not split Chinese, Japanese or Thai text into words, and does not stem or group words by meaning.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "make_word_cloud"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | fold (default for text): Apple and apple count as one word, shown in lower case; as_written (default for a word list): case is kept and counted apart. | |
| seed | No | Layout seed, 0 to 999999 (default 1). The same input and seed give the same layout; another seed gives another arrangement. | |
| text | No | Text to turn into a cloud, up to 100,000 characters, e.g. survey answers. Give text or words, not both. | |
| shape | No | rectangle (default, 720 x 520 pt) or circle (520 pt across). | |
| title | No | Optional title printed above the cloud and used in file names, up to 80 characters, e.g. "Customer feedback, Q3". | |
| words | No | Alternative to text: up to 500 words with weights, e.g. [{"word":"growth","weight":12},{"word":"New York","weight":5}]. Each word up to 40 characters; weights above 0. | |
| palette | No | Colour set: classic (default), ocean (blues), forest (greens), sunset (reds and oranges) or mono (greys). | |
| max_words | No | Most words to draw, 10 to 200 (default 100), e.g. 50. The highest counts are drawn. | |
| page_size | No | PDF page, landscape: letter (default) or a4. | |
| min_length | No | Shortest word to count, in characters, 1 to 20 (default 2), e.g. 3. | |
| stop_words | No | Stop-word list to remove common function words: en (default, English), es, fr, de, it, pt, or none to keep all words. Other languages keep all words, e.g. "es". | |
| orientation | No | horizontal (default): words read left to right; mixed: about a third of the words read bottom to top. | |
| exclude_words | No | Extra words to leave out, up to 100, matched without case, e.g. ["project", "team"]. | |
| max_font_size | No | Largest font size in points, up to 120 (default 64), at least min_font_size, e.g. 72. | |
| min_font_size | No | Smallest font size in points, 8 to 40 (default 10), e.g. 12. | |
| include_numbers | No | Count number-only words such as 2026 (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | ||
| title | Yes | ||
| counts | No | ||
| source | Yes | ||
| left_out | Yes | ||
| settings | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| top_words | Yes | ||
| layout_check | Yes | ||
| deterministic | Yes | ||
| preview_count | No | ||
| left_out_count | Yes | ||
| pdf_text_check | Yes | ||
| words_in_cloud | Yes | ||
| largest_font_pt | Yes | ||
| not_in_top_count | Yes | ||
| smallest_font_pt | Yes | ||
| words_considered | Yes | ||
| font_scale_percent | Yes |