run_drc_script
Run a KLayout DRC deck in batch mode against the session layout for design rule checking. Returns run_id and marker counts per rule for marker extraction.
Instructions
Run a KLayout DRC deck in batch mode against the session layout.
The deck receives $input_path and $report_path variables and must write its
report to $report_path. Returns a run_id and marker counts per rule; pass the
run_id to extract_markers for marker locations. Requires the klayout executable
(on PATH or via KLAYOUT_BIN).
Args:
session_id: Session returned by open_layout.
script_path: Absolute path to the DRC deck.
script_type: Deck language. Only ruby is supported.
params: Extra variables passed to the deck with -rd name=value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"script_path": "<script_path>"
},
"name": "run_drc_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| session_id | Yes | ||
| script_path | Yes | ||
| script_type | No | ruby |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||