render_report
Create styled PDF reports from player assessments, comparisons, claim adjudications, or interpretive analyses. Returns the file path.
Instructions
Render an answer into a downloadable, styled PDF report; returns the absolute file path.
After completing ANY assess / compare / claim answer, ALWAYS end by asking the user if they'd like a downloadable PDF report of it — every time, as the closing line of your answer, not only when they hint at it. Generate the PDF when they say yes (or asked for a report/PDF/download up front), then give them the returned path.
result must be the EXACT structured object the engine tool just returned
(assess_player / compare_players / adjudicate_claim), passed through
verbatim — the same dict, not a summary of it. NEVER retype, round, rebuild,
or trim fields: the server validates against the engine's own result shape
and rejects anything else. If you no longer have the engine result, call the
engine tool again first. Never pass the card, and never embed the card image.
kind selects the template:
"assess_skater": an assess_player result for a forward or defenseman
"assess_goalie": an assess_player result for a goalie (has danger_profile)
"compare": a compare_players result (works for splits and refusals too)
"claim_check": an adjudicate_claim result — pass the original claim sentence as
title(it headlines the report and names the file)"interpretive": YOUR OWN prose, for questions with no engine tool (line synergy, goalie support, free-form reads). Pass {title, tone ("positive"/"negative"/"mixed"/"neutral"), players: [names], sections: [{heading, body}, ...], caveat, summary}. The report is prominently badged "Interpretive read · AI — not an engine verdict". Never pass engine output as interpretive, and never pass your own prose under an engine kind — the badge is how the reader tells them apart.
title (optional) overrides the report heading; player names still come
from the result. The PDF lands in ~/Documents/HockeyCardReports/
(created if missing; filename = player(s) + kind + date).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| title | No | ||
| result | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||