Prepare Func
prepare_funcInsert a .func directive into an LTspice schematic to define reusable expressions for simulations; specify the schematic path and function definition.
Instructions
Insert a .func directive.
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": {
"schematic_path": "<schematic_path>",
"definition": "<definition>"
},
"name": "prepare_func"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | ||
| schematic_path | Yes | ||
| workspace_root | No | Optional per-call workspace root override. |