Docs Operation reference workspace operations
workspace operations#
5 operations. Generated from assets/operations.json; all areas.
On this page (5)
workspace.list#
Read workspaces
List saved project and device contexts.
Annotations: read-only, idempotent, open world.
Takes no arguments.
tomaccoctl call workspace.list
workspace.save#
Save workspace
Save a named project, target and optional native test scenario without modifying project sources.
Annotations: writes, idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
name | string | yes | matching [A-Za-z0-9_-]{1,64} | |
path | string | yes | ||
platform | string | "android" | one of android, ios, web, linux | |
device | string | "" | ||
bundle_id | string | "" | ||
scenario | string | "" |
tomaccoctl call workspace.save '{"name":"<name>","path":"<path>"}'
workspace.remove#
Remove workspace
Remove a saved context; project files remain intact.
Annotations: destructive, idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
name | string | yes |
tomaccoctl call workspace.remove '{"name":"<name>"}'
workspace.context#
Load agent context
Read project capabilities, tools, devices, recent jobs and executable recipes in one call.
Annotations: read-only, idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
name | string | yes |
tomaccoctl call workspace.context '{"name":"<name>"}'
workspace.execute#
Run workspace
Build, test, lint, run or execute the saved UI scenario using the shared native APIs.
Annotations: writes, not idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
name | string | yes | ||
action | string | yes | one of build, test, lint, run, ui_test | |
configuration | string | "debug" | one of debug, release |
tomaccoctl call workspace.execute '{"name":"<name>","action":"build"}'