add_gate
Add configurable AND/OR/NAND/NOR/XOR/XNOR, NOT, or BUF gates to a Logisim circuit and get absolute output-port coordinates for wiring.
Instructions
Add AND/OR/NAND/NOR/XOR/XNOR (2-5 inputs), NOT or BUF.
(x, y) is the gate's OUTPUT point. Returns absolute port coordinates to wire to. XOR/XNOR use parity semantics (odd number of 1s). width > 1 = bitwise on buses.
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": {
"path": "<path>",
"kind": "<kind>",
"x": "<x>",
"y": "<y>"
},
"name": "add_gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| kind | Yes | ||
| path | Yes | ||
| label | No | ||
| width | No | ||
| facing | No | east | |
| inputs | No | ||
| circuit | No |