compare_cards
Compare Metaflow cards from multiple runs side by side. Generates an HTML page for visual comparison and text summaries for analysis.
Instructions
Compare Metaflow cards across multiple runs side by side.
Creates an HTML comparison page and returns it. Save the html field to a local .html file and open it in your browser to view the cards side by side. Also returns text summaries of each card for analysis.
Two ways to specify which cards to compare:
Option A -- provide a list of step/task pathspecs directly: pathspecs=["MyFlow/100/validate", "MyFlow/101/validate"]
Option B -- provide flow_name + step_name + run_ids (shorthand): flow_name="MyFlow", step_name="validate", run_ids=["100", "101"] Resolves each to "MyFlow/{run_id}/{step_name}" (first task).
Args: pathspecs: List of step or task pathspecs to compare. flow_name: Flow name (used with step_name + run_ids). step_name: Step name (used with flow_name + run_ids). run_ids: List of run IDs to compare (used with flow_name + step_name). card_type: Filter cards by type before selecting. card_id: Filter cards by ID before selecting. card_index: Which card to use if multiple match (default 0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pathspecs | No | ||
| flow_name | No | ||
| step_name | No | ||
| run_ids | No | ||
| card_type | No | ||
| card_id | No | ||
| card_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |