Drawing diagrams
Tool ID: drawing_diagrams
Purpose and availability
Discover the exact IDs and types of diagrams already saved in this detached candidate. Start the typed drawing workflow here; this does not create a diagram, load online tiles or interpret geographic coordinates as drawing positions.
Prerequisites and invocation
1. Select the intended conversation/candidate and save any intended detached changes explicitly; unsaved human-editor changes are not this input. 2. Call drawing_diagrams with {} for the first page. Optional offset starts at 0; limit defaults to 50 and admits 1–50. 3. Retain the returned artifact and exact diagram_id. For later pages, pass that value as expected_artifact so a concurrent save cannot silently change the selection. Use next_offset; do not invent IDs from names. 4. Choose a row with schematic_inspection_available=true before calling drawing_inspect.
Exact input schema
{
"additionalProperties": false,
"properties": {
"expected_artifact": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"limit": {
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"offset": {
"minimum": 0,
"type": "integer"
}
},
"required": [],
"type": "object"
}
Results and units
schema=powersystem-drawing-discovery/1, candidate_id, artifact, adapter_schema and source=detached-candidate-snapshot identify the read. diagrams contains diagram_id, saved name, native type and schematic_inspection_available. total, offset and next_offset describe the diagram page; next_offset=null ends it. An initial total=0 means no saved diagrams in this candidate, not a zero-load network; an empty page at a larger offset can simply be past the end. Map rows are discoverable but not schematic-qualified; no lengths, GPS positions or tile-provider availability are inferred.
Limits and recovery
An expected_artifact mismatch is a stale byte snapshot: deliberately call drawing_diagrams again and repeat selection against its new artifact; do not reuse the old IDs without discovery. Unknown selected IDs, duplicate identities or malformed native archive records can reject discovery; they are never silently repaired. Each page has a bounded response-byte budget; reduce limit if several records exceed a page, but one oversized record can still fail. Paging changes only the response, not the source model. Retain the prior artifact and correct invalid source records explicitly in a separate candidate. No automatic inference retry is authorized.
AI and human boundaries
This tool is read-only in Plan and Build. The server binds candidate_id; it is not a selectable input. artifact is the SHA-256 of the exact saved candidate archive, not an approval or a new engineering version. engineering_approval=false always. No tool installs a proposal, saves a circuit, edits Original/Main, switches the human editor, accepts engineering or fetches map tiles. Native visual review and an explicitly authorized detached edit remain separate. See AI drawing workflow and Human review.