Preview a local file in AI Coach
show_ai_coach_fileOpen a local file in a private, sandboxed preview beside the AI Coach mascot. Works with Markdown, text, diagrams, images, and HTML without exposing file contents to the model.
Instructions
Open a safe local preview beside the AI Coach mascot (md, markdown, txt, mmd, mermaid, html, htm, jpg, jpeg, png, heic, webp, svg; HTML is sandboxed). The file is read only by the AI Coach app; its contents are never returned to the model. Use only for a file the user asked to preview or one created in the current task.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "show_ai_coach_file"
}
}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 (BCP 47). | |
| mascotId | No | A mascotId returned by status. Defaults to the primary mascot when omitted. |