widgets_create
Create a new livechat widget for your website. The widget will be created with default settings. You can customize theme, auto-reply mode, and more. Use this when user wants to add a chat widget to their site.
This record as markdown: /tools/io-github-saloprj-dialogbrain/widgets-create.md
What widgets_create does on Dialogbrain
AI agents use widgets_create to create or update resources in Dialogbrain, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Dialogbrain environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name for the widget (e.g., 'Website Chat', 'Support Widget') |
position | string | — | Widget position on screen |
allow_voice | boolean | — | Master switch for voice — set true to show the mic so visitors can talk to the agent. Everything else voice-related is inert until this is on. The mic also need |
display_mode | string | — | Visual mode of the widget. Pick exactly one: - 'chat' (default): full chat panel + voice mic — use for support / sales / general. - 'voice_only': mic-only bubbl |
header_title | string | — | Title shown in chat header |
primary_color | string | — | Primary color for widget theme (hex, e.g., '#2563eb') |
auto_reply_mode | string | — | Auto-reply mode: 'draft' (review before sending) or 'auto' (send immediately) |
voice_button_label | string | — | Localized aria-label and hover tooltip for the voice-only mic bubble (only used when display_mode='voice_only'). ≤ 100 chars. Defaults to 'Talk to agent' if omi |
Parameters from the server's own tool schema.
Why widgets_create is rated Medium
This tool creates a new widget resource that modifies the website configuration by adding a live chat capability. It is a reversible write operation (the widget can be deleted or reconfigured) with no irreversible data loss or financial impact.
From the tool's definition Tool name 'widgets_create' and description states it will 'Create a new livechat widget for your website' with customizable settings.
Attacks that exploit this kind of access
The rule that runs widgets_create safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Dialogbrain, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For widgets_create, this is the rule to start with:
widgets_create stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Dialogbrain, apply this rule, and every widgets_create call is checked against it from then on.
Questions about widgets_create
Create a new livechat widget for your website. The widget will be created with default settings. You can customize theme, auto-reply mode, and more. Use this when user wants to add a chat widget to their site. It is categorised as a Write tool in the Dialogbrain MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
widgets_create accepts 8 parameters: name, position, allow_voice, display_mode, header_title, primary_color, auto_reply_mode, voice_button_label. Required: name. The full parameter table on this page comes from the server's own tool schema.
Register the Dialogbrain MCP server in PolicyLayer and add a rule for widgets_create: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Dialogbrain. Nothing to install.
widgets_create is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the widgets_create rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for widgets_create. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
widgets_create is provided by the Dialogbrain MCP server (https://api.dialogbrain.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Dialogbrain, and thousands of servers like it.
This server
Across the catalogue