add_place
Add a single place to a Petri net with name, tokens, optional tag, and x/y coordinates from find_free_position to avoid collisions.
Instructions
Add a single place (position) to the Petri net.
LOW-LEVEL TOOL — use only when no existing pattern (add_generator, add_machine, etc.) covers the required topology. For standard queueing and production constructs, prefer the high-level pattern tools.
Layout: ALWAYS call find_free_position(near_element_id, direction) first to get collision-free coordinates near the element you will connect to, then pass the returned x and y here. Without explicit coordinates the auto-cursor places the element at the far right, colliding with existing elements on follow-up edits.
Args: name: Human-readable place name tokens: Initial token count (marking) tag: Optional semantic tag (e.g. "throughput" for counter places) x: Canvas X coordinate — obtain from find_free_position y: Canvas Y coordinate — obtain from find_free_position
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| tokens | No | ||
| tag | No | ||
| x | No | ||
| y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |