GitHubCard
v0.3.0Create GitHub profile and repository cards for READMEs, link previews and social posts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_card Create GitHub card
Create (or reuse) a published card image for a GitHub profile or repository. Returns svg/png URLs and markdown/html embed snippets. Idempotent; counts once against the daily quota.
| Parameter | Type | Description |
|---|---|---|
subject * | string | GitHub username (e.g. octocat) or owner/repo (e.g. octocat/hello-world) |
design | object | a design document from get_template_design or get_card_design, possibly edited; replaces template and palette |
format | string | which link to return as url: "svg" (default; best for README embeds) or "png". Both are always in urls |
palette | string | background palette id from list_palettes; omit for the template's own background. For any other colour use design |
template | string | template id from list_templates; omit for the subject's default layout |
watermark | boolean | false removes the watermark (Pro only; ignored on Free) |
preview_card Preview a card as PNG
Render a PNG for visual review before publishing. Uses one daily card unit on success. Creates no card or public link.
| Parameter | Type | Description |
|---|---|---|
subject * | string | GitHub username (e.g. octocat) or owner/repo (e.g. octocat/hello-world) |
design | object | a design document from get_template_design or get_card_design, possibly edited; replaces template and palette |
palette | string | background palette id from list_palettes; omit for the template's own background. For any other colour use design |
template | string | template id from list_templates; omit for the subject's default layout |
watermark | boolean | false removes the watermark (Pro only; ignored on Free) |
validate_card Check a card request
Dry run of create_card with the same inputs: checks template/palette ids, Pro features and the design document, without creating anything or using quota. warnings lists layers that reach outside the artboard (they would be clipped); fix those before create_card.
| Parameter | Type | Description |
|---|---|---|
subject * | string | GitHub username (e.g. octocat) or owner/repo (e.g. octocat/hello-world) |
design | object | a design document from get_template_design or get_card_design, possibly edited; replaces template and palette |
format | string | which link to return as url: "svg" (default; best for README embeds) or "png". Both are always in urls |
palette | string | background palette id from list_palettes; omit for the template's own background. For any other colour use design |
template | string | template id from list_templates; omit for the subject's default layout |
watermark | boolean | false removes the watermark (Pro only; ignored on Free) |
list_templates List card templates
List card layouts with their ids, scope (profile/repo/all), size, widget types, and whether they need Pro.
| Parameter | Type | Description |
|---|---|---|
freeOnly | boolean | only templates available on the Free plan |
scope | string | profile or repo; omit for all. Results include scope=all templates, which fit both |
widgets | array | only templates containing all of these widget types (from list_components) |
list_palettes List background palettes
List background palette ids accepted by create_card.
list_components List widget types
List the widget (layer) types a design can contain: the scope (profile/repo) each fits, the layer settings each reads ("options", e.g. a text layer's style.textAlign or style.backgroundColor), and the font families the renderer embeds ("fonts").
get_template_design Get a template's design
Return a template's layout as an editable design document (artboard + layers). Costs no quota. Edit it and pass it to create_card as design.
| Parameter | Type | Description |
|---|---|---|
template * | string | template id from list_templates |
palette | string | palette id to apply; replaces the template's background in the returned design |
subject | string | username or owner/repo the card is for; decides profile vs repo layouts |
get_card_design Get a card's design
Return the design document of one of the account's cards, to edit and re-submit through create_card as design (which creates a new card; the original is unchanged).
| Parameter | Type | Description |
|---|---|---|
id * | string | card id from create_card or list_cards |
list_cards List my cards
List cards this account created through the API, most recently requested first. Paginated with nextCursor.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from a previous call |
limit | integer | page size 1-100 (default 20) |
delete_card Delete a card
Permanently delete one of the account's cards. Its links stop working everywhere they are embedded. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
id * | string | card id from create_card or list_cards |
get_usage Get plan and quota
Show the account's plan (free/pro) and how many cards it can still create today (cards.remaining, resets 00:00 UTC). The ai quota is reserved for future AI tools.