generate_topic_heatmap
Visualize document-topic probability matrix as a heatmap to identify which topics are most prominent in each document.
Instructions
Generate heatmap showing document-topic probability matrix. Visualizes which topics are most prominent in which documents.
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": {
"model_type": "<model_type>",
"output_path": "<output_path>"
},
"name": "generate_topic_heatmap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_type | Yes | Topic model type | |
| output_path | Yes | Path to save the heatmap image (PNG) | |
| max_topics | No | Maximum number of topics to include (default: 20) | |
| max_documents | No | Maximum number of documents to include (default: 50) |