get_or_create_workspace
Fetch a workspace by name or create it if missing, safely returning the same workspace on repeat calls. Use it to get an ID or set a target label.
Instructions
Get a workspace by name, creating it first if it doesn't exist - idempotent, so safe to call every time you start work on something (calling it again never makes a duplicate or changes an existing workspace). Returns the workspace as { id, name, targetLabel, status, createdAt, updatedAt }; a new one starts with status "created". Most other tools create their workspace implicitly, so you only need this to set a targetLabel or to get the id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workspace name, e.g. "clite-dialer". Names are matched exactly, so reuse the same spelling to get the same workspace. Must not be empty. | |
| targetLabel | No | A human-readable label for what's being analyzed, e.g. a package name like "com.example.app". Only used when the workspace is created; defaults to the name. |