Preview a local file in AI Coach
show_ai_coach_filePreview local files safely next to your AI Coach mascot. Supports text, markdown, images, and sanitized HTML without exposing file contents to the model.
Instructions
Open a safe local preview beside the AI Coach mascot. Allowed files: md, markdown, txt, mmd, mermaid, html, htm, jpg, jpeg, png, heic, webp, and svg. HTML is rendered with scripts removed and no network access. The file is read only by the AI Coach app; its contents and image bytes are never returned to the model. Use this only for a file the user asked to preview or a file created in the current task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the local file to preview. Allowed: md, markdown, txt, mmd, mermaid, html, htm, jpg, jpeg, png, heic, webp, svg. | |
| locale | No | Display language hint (BCP 47). The dashboard view passes hostContext.locale through unchanged. | |
| mascotId | No | A mascotId returned by status. Defaults to the primary mascot when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| shown | Yes | ||
| fileName | No | ||
| fileType | No | ||
| mascotId | No | ||
| sizeBytes | No | ||
| updatedAt | Yes | ||
| connection | Yes | ||
| protocolVersion | Yes |