Create code tour card
create_code_tour_cardTurn a project archive or file list into an interactive card with tabs for each source file, copy buttons, and optional tutorial terms. Makes code exploration structured and clickable.
Instructions
Render a project's source as an interactive card with one tab per file (code with copy buttons, ordered README, manifest, then src). Pass the path of a zip archive generated earlier in the conversation for a one-call plug-n-play tour, or pass files explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Part number for large projects (1-based). Big tours split automatically; when the result says more parts remain, call again with the next part. | |
| files | No | Explicit files to show when not using archivePath | |
| intro | No | Guidance shown in a leading 'Start here' tab | |
| title | Yes | ||
| include | No | With archivePath: only include entries whose path contains one of these | |
| maxTabs | No | ||
| subtitle | No | ||
| tutorTerms | No | Educational tutor terms. Occurrences in the card are underlined; hovering ~1.2s shows the tip and notifies the host so the model can follow up. | |
| archivePath | No | Path to a local zip; its text files become tabs | |
| contextActions | No | Right-click menu actions the model anticipates being useful. Choosing one sends its prompt to the conversation; use {{selection}} to include the user's selected text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes |