pattern_match
Find structural subgraph matches within a diagram by specifying node and edge patterns, returning all matched locations and counts.
Instructions
Find all pattern matches within a diagram.
Implements subgraph matching to locate structural patterns.
Args: diagram_id: ID of diagram to search pattern: Pattern spec with 'nodes' (dict) and 'edges' (list) Each edge tuple: (source_id, target_id, constraints_dict)
Returns: dict with matches list, num_matches
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": {
"diagram_id": "<diagram_id>",
"pattern": "<pattern>"
},
"name": "pattern_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| diagram_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||