guild_get_widget_image_url
Generate a public Discord guild widget PNG URL for embedding in webpages or markdown. Synthesizes the URL and style without making a REST call.
Instructions
Purpose: Synthesize a public widget PNG URL. No REST call is performed - the agent decides whether to fetch.
When to use: - Embed a guild widget image on a webpage or in markdown.
When NOT to use: - Want JSON data → use guild_get_widget. Want admin settings → use guild_get_widget_settings.
Returns: {url, style}. The URL is https://discord.com/api/guilds/{id}/widget.png?style={style}.
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": {
"guild_id": "<guild_id>"
},
"name": "guild_get_widget_image_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Widget style: 'shield' (default, compact) or 'banner1'..'banner4' (large banner variants) | |
| guild_id | Yes | Guild to render |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||