Plot Confusion Matrix
plots.confusionConfusion-matrix figure for one execution: heatmap with trial counts + per-class accuracy bars, rendered as a PNG the assistant can see. Use it right after execution.results to eyeball WHICH classes are confused, not just the accuracy number.
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": {
"execution_id": "<execution_id>"
},
"name": "plots.confusion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Local/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline). | |
| matrix | No | "eval" (held-out, default) or "train" (fit-set / cross-validation). CV and evaluation-plan runs often have no eval matrix — use "train". | eval |
| execution_id | Yes | Run to plot (from execution.run / execution.results). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| meta | No | Figure sidecar. foundation.compare includes results/best/skipped (also as a JSON text content block). | |
| title | No | ||
| mimeType | No | ||
| savedPath | No | Set when save=true. | |
| sizeBytes | No | Set when save=true. |