Skip to content

check

Check the Workspace · write tool

Validate the Workspace as it is on disk, as archidocs check does, and return its issues. Use it after editing YAML with your own file tools.

No arguments.

Field Type Required Notes
issues list of object yes
issues[].file string yes
issues[].line number yes
issues[].column number
issues[].rule string yes
issues[].severity "error" or "warning" yes
issues[].message string yes
issues[].docs string yes The rule’s page on the docs site.
summary object yes
summary.errors number yes
summary.warnings number yes

Called over the Kitchen sink example Workspace.

Arguments:

{}

Result:

{
"issues": [],
"summary": {
"errors": 0,
"warnings": 0
}
}

A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:

  • invalid_input when the arguments don’t fit the input above.
  • read_only when the server reads a published Workspace Bundle, or serves HTTP without --allow-writes.
  • source_unavailable when the server can’t read the Workspace.

Error codes says what to do about each.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.