remove_view
Remove a Saved View · destructive · write tool
Removes a Saved View from its Project’s YAML. Refused while an ADR links it, with each reference’s file:line.
| Field | Type | Required | Notes |
|---|---|---|---|
project |
string | yes | The Project to edit, by id. |
id |
string | yes | An id in this Project (bare), or project:id. |
dry_run |
boolean | Check the write and return its diff without changing any file. Default: false. |
Output
Section titled “Output”| Field | Type | Required | Notes |
|---|---|---|---|
action |
"created" or "updated" or "removed" or "unchanged" |
yes | |
id |
string or null | yes | The qualified id written (bare for a Team, Environment or Project); null for a Deployment, or a Relationship without one. |
from |
string | ||
to |
string | ||
service |
string | ||
environment |
string | ||
target |
string | ||
files |
list of string | yes | |
diff |
string | yes | |
dryRun |
boolean | yes |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "project": "sink", "id": "everything", "dry_run": true}Result:
{ "action": "removed", "id": "sink:everything", "files": [ "examples/kitchen-sink/archidocs/sink/views.yaml" ], "dryRun": true, "diff": "(the patch below)"}The diff, as a patch:
--- a/examples/kitchen-sink/archidocs/sink/views.yaml+++ b/examples/kitchen-sink/archidocs/sink/views.yaml@@ -1,17 +1,6 @@ views: #region structural structural:- everything:- title: Everything- description: Every Element, with Shop and API open.- level: c3- include:- - element: shop- with: descendants- - customer- - search- - payment-gateway- - payments-provider orders-db-outage: title: What an Orders DB outage affects description: The Services that depend on Orders DB, with the Impact Lens on.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 the Project, or an id it names, matches nothing.validation_failedwhen the write would add a check error. Nothing is written.read_onlywhen the server reads a published Workspace Bundle, or serves HTTP without--allow-writes.source_unavailablewhen the server can’t read the Workspace.
Error codes says what to do about each.
See also
Section titled “See also”Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.