DashboardsWriteDo not retry automatically

Create widget

create_widget

Create a view or control widget. Use describe_widget_kind / validate_widget_spec to shape view/control. Client-plane filters go in clientPipeline (widget_pipeline_append), not here.

Parameters

ParameterTypeRequiredDescription
slugstringrequiredLowercase kebab-case slug, 3-64 chars
namestringrequiredInput for name.
descriptionstringoptionalInput for description.
shape"view" | "control"requiredInput for shape.
viewobjectoptionalRequired when shape="view". The view spec, discriminated by `kind`. The full per-kind field schema is NOT inlined here because it is very large: call list_widget_kinds for the available kinds, describe_widget_kind for one kind's fields, and validate_widget_spec to check a draft. The spec is validated in full server-side, so an invalid one is refused, not silently accepted.
controlobjectoptionalRequired when shape="control". The control spec, discriminated by `kind`. Not inlined here: call list_widget_kinds({category:"control"}) for the kinds, describe_widget_kind for one kind's fields, and describe_actions / validate_action for the action specs a control emits. Validated in full server-side.
queryIdstring | nulloptionalInput for queryId.
queryBindingsobjectoptionalInput for queryBindings.
visibility"private" | "workspace" | "public-link" | "public-indexed"optionalInput for visibility.
folderIdstring | nulloptionalInput for folderId.
tagsstring[]optionalInput for tags.

Example call

The tool call an MCP client sends (required arguments shown with placeholder values).

{
"tool": "create_widget",
"arguments": {
"slug": "value",
"name": "value",
"shape": "value"
}
}

Use this tool in

Related Dashboards tools