is_root_schematic
Check if a schematic is the root or a sub-sheet.
Instructions
Check if a schematic is the root or a sub-sheet.
A sheet is found in its project wherever its file sits below the project's
folder. A file that no sheet of its project uses is a root. For a sub-sheet,
root_path is the top-level sheet of its project that holds it.
Args:
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "is_root_schematic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schematic_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_root | Yes | ||
| root_path | Yes |