assign_app_scenario
Assign a scenario to a project (and optionally an existing variant), or remove it.
This only sets metadata — it never touches the scenario's steps or hardened
element cache, and never triggers a build. Provide project_id (and an
optional existing build_id) to file the scenario under that project;
omit project_id to remove it from its project. Only scenarios you own.
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": {
"scenario_id": "<scenario_id>"
},
"name": "assign_app_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | MCP API key | |
| build_id | No | Optional EXISTING variant/build id to associate (metadata only — reuses a build already present, never triggers a new build). Cleared if omitted. | |
| project_id | No | Project (proj-… id you own) to file the scenario under, so it shows up under that project in the cto-gui graphs / right test panel. Pass null/omit to REMOVE the scenario from its current project. | |
| scenario_id | Yes | Scenario id to (re)file (from list_app_scenarios) | |
| session_token | No | Session token |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||