add_arc
Add an arc between a place and a transition in a Petri net, enforcing bipartite connectivity. Supports normal, inhibitor, or read arcs.
Instructions
Add an arc connecting a place to a transition or vice versa.
LOW-LEVEL TOOL — use only when no existing pattern covers the required topology. Arcs enforce bipartite constraint: Place↔Transition only.
Args: source_id: ID of the source node (place or transition) target_id: ID of the target node (place or transition) weight: Arc weight (tokens consumed/produced per firing) arc_type: Arc type — "normal", "inhibitor", or "read"
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": {
"source_id": "<source_id>",
"target_id": "<target_id>"
},
"name": "add_arc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | ||
| target_id | Yes | ||
| weight | No | ||
| arc_type | No | normal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |