preview_test_edit

Shows diff preview.

Shows diff preview.

Read-only · Calls external systems. Safe to call: this tool does not modify data.

Parameters

FieldTypeRequiredDescription
actionsstringNoJSON array of actions (replaces current actions)
auto_correct_kindsbooleanNoRewrite declared input_variable kinds to match the platform's variable types. Default false: kind mismatches are hard errors.
descriptionstringNoNew test description (only if explicitly changing it)
namestringNoNew test name (only if explicitly changing it)
skip_validationbooleanNoBypass the client-side validator (the platform still validates). Use for action types the CLI doesn't recognise or top-level metadata edits. Match this to the edit_test call you are previewing so the preview and apply run the same path.
test_idnumberYesID of the test to preview changes for
variablesstringNoJSON variables object (replaces current variables)
variantsarrayNoVariant pin specifiers for V3 bucket resolution. Each item is '5' (numeric ID) or 'API:Staging' (group:variant by name). Edit mode: groups not pinned retain their existing buckets.

Example arguments

Illustrative arguments an agent supplies when calling this tool:

{
  "test_id": 0
}

Description

Protected fields (cannot change): product_id, collection_uid.

Preview the impact of editing a test WITHOUT applying changes. Returns which tests would be invalidated and which monitorings would be deactivated.

V3 buckets: pass variants=["API:Staging", ...] (repeatable, same forms as create_test) to preview re-pinning. In edit mode, groups not pinned retain their existing buckets. Pre-V3 tests get default variants filled in automatically.

Workflow: get_full_test → preview_test_edit → (review impact) → edit_test.

What's next?

All MCP tools

Browse the full tool reference by category.

Connect a client

Point Claude, Cursor, or Claude Code at the server.

Last updated on