CloudArch

v0.2.2
ru.cloud-arch/cloudarch Checked 10 hours ago Published 3 months ago

Create and update live animated architecture diagrams on CloudArch from a prompt or script.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_diagram

Create an interactive architecture diagram on CloudArch. Provide a description of the system and get back a URL to the live animated diagram. ALWAYS pass `readme` as well — a Markdown narrative with Overview / Components / Scenarios / Tradeoffs sections — so the viewer's README pane has substance. Call get_script_template for the full README authoring guide and :concept{} / :case{} inline directive syntax (standalone leaf form: ::concept{} / ::case{}).

ParameterTypeDescription
code *stringCloudArch script code — REQUIRED. Call get_script_template first: it carries the layout rules (.newRow() every 3-4 nodes), the scenario API (.scenario/.showError/.flashError), and the architectural…
description *stringNatural language description of the system architecture to visualize. Be specific about components, connections, and data flows.
isPublicbooleanWhether the diagram is publicly visible. Defaults to FALSE: a diagram built from someone's codebase should not land in the public gallery unless that was asked for. Pass true deliberately.
namestringName for the diagram. Auto-generated if omitted.
readmestringMarkdown README for the diagram. Strongly recommended — without it the viewer's README pane shows an empty card and the educational value is lost. Target ~150-400 words. Recommended sections: ## Ove…
slugstringURL slug for the diagram (lowercase, hyphens). Auto-generated if omitted.
tagsarrayTags for categorization

list_diagrams

List your CloudArch diagrams

ParameterTypeDescription
limitnumberMax results

update_diagram

Update an existing CloudArch diagram. You can change the code, name, description, or other fields. Provide either id (UUID) or slug to identify the diagram.

ParameterTypeDescription
codestringUpdated script code
descriptionstringUpdated description
idstringThe diagram ID (UUID) to update. Either id or slug must be provided.
isPublicbooleanUpdated visibility
namestringUpdated name
readmestringUpdated Markdown README. Same authoring guide as on create_diagram: ## Overview / ## Components / ## Scenarios / ## Tradeoffs / ## References, ~150-400 words, [LABEL] prefixes, no emojis. Use :concept…
slugstringThe diagram slug to update. Either id or slug must be provided. If slug is given, the ID is resolved automatically.
tagsarrayUpdated tags

delete_diagram

Delete an existing CloudArch diagram by its ID.

ParameterTypeDescription
id *stringThe diagram ID (UUID) to delete

get_script_template

Get the CloudArch script generation prompt/template. Use this to understand how to write topology scripts, then call create_diagram with the generated code.