modify_architecture
Modify existing cloud architecture specifications using natural language instructions to add, remove, or reconfigure components without starting from scratch.
Instructions
Modify an existing architecture with a natural-language instruction.
When to use: You already have an ArchSpec and want to evolve it (add a
cache, swap a service, change a region). Returns the updated ArchSpec.
For from-scratch design, use design_architecture. For iterative
multi-turn editing with conversation memory, use chat_create_session.
Behavior: Calls an LLM provider — incurs API costs. Pure function: returns a new spec without mutating the input. Does not deploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_json | Yes | Existing ArchSpec as a dict (typically the output of a prior `design_architecture`, `modify_architecture`, or `chat_send` call). Must contain 'name', 'provider', 'components', and 'connections' keys. | |
| instruction | Yes | Plain-English modification instruction. The LLM interprets it and produces a new ArchSpec with components added, removed, or reconfigured. |