get_workspace_info
Workspace info · read tool
Where this server reads the Workspace from, the commit it reflects, whether write tools are allowed, and how big the Model is.
| Field | Type | Required | Notes |
|---|---|---|---|
at |
string | A point in time to answer at: a tag, a commit sha or its first 4 or more characters, or a date (YYYY-MM-DD) or time (ISO 8601, UTC unless it gives a zone). On a checkout, any git ref works too. Leave out for the current Workspace. |
Output
Section titled “Output”| Field | Type | Required | Notes |
|---|---|---|---|
source |
object | yes | |
source.kind |
"checkout" or "bundle" |
yes | |
commit |
string or null | yes | |
writesAllowed |
boolean | yes | |
counts |
object | yes | |
counts.projects |
number | yes | |
counts.elements |
number | yes | |
counts.teams |
number | yes | |
counts.environments |
number | yes | |
issues |
object | yes | |
issues.errors |
number | yes | |
issues.warnings |
number | yes | |
viewerUrl |
string |
When source.kind is checkout
| Field | Type | Required | Notes |
|---|---|---|---|
source.root |
string | yes |
When source.kind is bundle
| Field | Type | Required | Notes |
|---|---|---|---|
source.location |
string | yes |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{}Result:
{ "source": { "kind": "checkout", "root": "examples/kitchen-sink/archidocs" }, "commit": "692f17bf73d601b1443591594815d144cefa2d33", "writesAllowed": true, "counts": { "projects": 1, "elements": 13, "teams": 3, "environments": 1 }, "issues": { "errors": 0, "warnings": 0 }}Errors
Section titled “Errors”A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:
invalid_inputwhen the arguments don’t fit the input above.not_foundwhen an id or name, or the point in history given asat, matches nothing, or a sha prefix starts more than one Revision, with the candidates.source_unavailablewhen the server can’t read the Workspace.history_unavailablewhen the Workspace has no history to read atat.
Error codes says what to do about each.
See also
Section titled “See also”Documents Archidocs v1.4.0, the latest release.