SmartUI Build Query
smartui_build_queryList SmartUI builds in a project, get one build, or get the CI gate verdict for a build. Use action=gate in pipelines: it returns verdict (passed|failed|pending_approval|running|error), totals (including missing screenshots the baseline has), blocking_comparison_ids, and blocking[] with per-item detail. verdict=failed covers rejections AND builds that dropped baseline screenshots. Read-only.
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": {
"action": "<action>",
"project_id": "<project_id>"
},
"name": "smartui_build_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (list only, 1-based) | |
| limit | No | Page size (list only, default 50, max 200) | |
| action | Yes | list builds, get one build, or gate (CI verdict) | |
| branch | No | Filter builds by branch (list only) | |
| build_id | No | Build id — required for get/gate (or use build_name) | |
| build_name | No | Build name. get/gate: exact name, an alternative to build_id. list: case-insensitive substring filter, applied client-side to the newest 200 builds (upstream has no name filter). | |
| project_id | Yes | Project id (required) | |
| build_status | No | Substring filter on build status (list only), e.g. "pending-approval" |