Always-fresh embed snippets
embedGenerates ready-to-paste Markdown GIF/still and HTML video snippets with stable raw.githubusercontent URLs for a demo, so you can publish media without manual URL handling.
Instructions
Ready-to-paste embed snippets (markdown GIF, markdown still, HTML ) for a demo, using stable raw.githubusercontent URLs on the 'demo-media' branch. Pure string generation — no network, no render. Owner/repo come from the repo's origin remote; the demo name from the directory basename. Pair with the demo-publish workflow so CI keeps the URLs fresh. See docs/EMBEDS.md.
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": {
"dir": "<dir>"
},
"name": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | demo project directory — pass an absolute path | |
| repo | No | consuming repo to detect owner/repo from (default: server cwd) | |
| still | No | still-frame basename under stills/ (default: poster) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| demo | Yes | ||
| repo | Yes | ||
| urls | Yes | ||
| owner | Yes | ||
| still | Yes | ||
| branch | Yes | ||
| snippets | Yes | ||
| workflow | Yes |