guild_get_widget_image_url
Synthesize a public widget PNG URL. No REST call is performed - the agent decides whether to fetch.
When to use
Section titled “When to use”- Embed a guild widget image on a webpage or in markdown.
When not to use
Section titled “When not to use”- Want JSON data → use
guild_get_widget. Want admin settings → useguild_get_widget_settings.
MCP call example
Section titled “MCP call example”{ "name": "guild_get_widget_image_url", "arguments": { "guild_id": "123456789012345678" }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
guild_id | string | yes | pattern: ^\d{17,20}$ | Guild to render |
style | ”shield” | “banner1” | “banner2” | “banner3” | “banner4” | no | one of shield, banner1, banner2, banner3, banner4 | Widget style: ‘shield’ (default, compact) or ‘banner1’..‘banner4’ (large banner variants) |
Complete input JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "guild_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Guild to render" }, "style": { "description": "Widget style: 'shield' (default, compact) or 'banner1'..'banner4' (large banner variants)", "type": "string", "enum": [ "shield", "banner1", "banner2", "banner3", "banner4" ] } }, "required": [ "guild_id" ]}Returns
Section titled “Returns”{url, style}. The URL is https://discord.com/api/guilds/{id}/widget.png?style={style}.
Example structured result
Section titled “Example structured result”{ "url": "https://example.com/resource", "style": "shield"}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
url | string | yes | format: uri | |
style | ”shield” | “banner1” | “banner2” | “banner3” | “banner4” | yes | one of shield, banner1, banner2, banner3, banner4 |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "style": { "type": "string", "enum": [ "shield", "banner1", "banner2", "banner3", "banner4" ] } }, "required": [ "url", "style" ], "additionalProperties": false}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
guildcategory must be enabled byMCP_CATEGORIESwhen an allowlist is set. - This tool is local-only and does not call Discord. Schema or domain validation can still reject malformed input.
Source
Section titled “Source”packages/mcp-core/src/tools/guild/get_widget_image_url.ts