get_card
Extract text content from a Metaflow card by specifying a step or task pathspec. Filter by card index, type, or ID, and optionally include raw HTML.
Instructions
Get a Metaflow card's content.
Returns text content extracted from the card by default. Cards can be multi-megabyte HTML — set include_html=True only when you actually need to save it to a file and open in a browser.
Use list_cards first to discover available cards.
Args: pathspec: Step ("FlowName/RunID/StepName") or task ("FlowName/RunID/StepName/TaskID") pathspec. card_index: Which card to retrieve if multiple exist (default 0). card_type: Filter cards by type before selecting by index. card_id: Filter cards by ID before selecting by index. include_html: If True, include the full raw HTML in the response. Default False — text_content is usually enough for analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pathspec | Yes | ||
| card_index | No | ||
| card_type | No | ||
| card_id | No | ||
| include_html | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |