Add Test Block
add_test_blockAdd one AI task (website or prototype), Survey, Accessibility or Card sorting block. Prefer add_task for website tasks. Follow the block schema; AI fields belong inside configuration. Omit id to generate a block ID server-side; returns blockId and the saved draft. Omit position to append. Use existing assets; never invent credentials. Returns current draft. No launch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | Yes | AI draft example: {"type":"ai-user-test","configuration":{"task":"","scenario":"","experience":null,"credentials":null}}. Prefer add_task/update_task for website tasks. Omit id when creating a block; the server returns blockId and the saved draft. Use returned IDs for edits and references. Configure sign-in credentials only in the authenticated Uxia editor using the returned test link; never send passwords through tools. | |
| testId | Yes | ||
| position | No | Zero-based insertion index; omit to append. | |
| construction | No | Optional decisions; proposed wording stays separate. Acceptance needs current proposalRevision and matching saved wording. Never launch approval. | |
| expectedRevision | No | Legacy compatibility only; ignored. The server resolves the current draft revision automatically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Open the draft in Uxia. | |
| testId | No | ||
| blockId | No | Server-assigned ID of the added block. Use it for subsequent edits and references. | |
| editable | No | ||
| definition | Yes |