| name | twicc-workspaces |
| description | List all TwiCC workspaces, or batch-look up specific workspace_ids. Use when you or the user want to browse workspaces, find a workspace ID, or batch-fetch metadata for known ids. |
TwiCC Workspaces
List all workspaces, or batch-look up specific ids with workspaces get.
When to use
- You or the user want to list or browse workspaces.
- You need to find a workspace ID for use with other commands.
- You have a list of known workspace_ids and want to batch-fetch their metadata — use
workspaces get <ID>... (one entry per id).
How to invoke
Prefer the mcp__twicc__* tools when you have them. Inside a TwiCC session your tool list may include mcp__twicc__* tools — one per command below (the command with / and - turned into _, e.g. mcp__twicc__create_session, mcp__twicc__update_session_settings). When present, use them instead of the $TWICC CLI: same arguments, same JSON result, no shell, and your session identity travels with the call so self/parent resolve on their own. Fall back to the $TWICC CLI below when those tools aren't available (outside a session, or when scripting from a terminal).
TwiCC's executable varies by launch mode (uvx, dev, installed tool). ALWAYS USE THIS TO RESOLVE $TWICC AT THE START OF EACH BASH INVOCATION:
TWICC=${TWICC_BIN:-$(command -v twicc 2>/dev/null)}
[ -n "$TWICC" ] || { echo "TwiCC executable not found in this context" >&2; exit 1; }
Then run $TWICC <args> — never quote $TWICC (use $TWICC args, never "$TWICC" args): it may expand to multiple words, which quoting would break.
Usage
List
$TWICC workspaces [OPTIONS]
--limit N — max results (default: 20).
--offset N — skip first N for pagination (default: 0).
--include-archived — include archived workspaces (excluded by default).
Batch lookup
$TWICC workspaces get <WORKSPACE_ID> [<WORKSPACE_ID>...]
Returns one entry per id in input order (duplicates collapsed). No filter flags — archived workspaces are returned like active ones.
Output format
Listing
[
{
"id": "backend",
"name": "Backend",
"archived": false,
"color": "#4a90d9",
"projectIds": ["-home-twidi-dev-api", "-home-twidi-dev-workers"],
"autoProjectPatterns": ["/home/twidi/dev/api*"]
}
]
Batch lookup (get)
Same shape per entry, plus a known boolean. When known: false, all other fields are null.
[
{"id": "backend", "name": "Backend", ..., "known": true},
{"id": "typo-or-unknown", "name": null, ..., "known": false}
]
Fields
id — slug derived from the name at creation time; never changes on rename.
name — display name (mutable).
color — may be null.
projectIds — project IDs (leading dash included). Drop the leading dash when passing on the command line; prefer directory paths when possible.
autoProjectPatterns — auto-add patterns (* wildcard). A pattern without * is treated as a directory prefix.
Examples
$TWICC workspaces
$TWICC workspaces --limit 50 --include-archived
$TWICC workspaces get backend
$TWICC workspaces get backend frontend devops
Related commands
$TWICC workspace <ID> — full details for one workspace (exit 1 if missing). Skill: twicc-workspace.
$TWICC create-workspace <NAME> — create a workspace. Skill: twicc-create-workspace.
$TWICC update-workspace <ID> — rename, recolor, add/remove projects or patterns. Skill: twicc-update-workspace.
$TWICC delete-workspace <ID> — delete a workspace. Skill: twicc-delete-workspace.
$TWICC projects — list projects (each has a workspaces field). Skill: twicc-projects.
How to present results
- Show workspace name and project count (length of
projectIds).
- If
autoProjectPatterns is set, mention the workspace auto-grows for matching directories.
- You are in TwiCC — link to a workspace:
[link text](/projects?workspace={workspace_id}).
- If there are more results than shown, offer to paginate with
--offset.
- For
get output: flag known: false entries as unknown (typo or never existed).