create_diagram_piece
Creates a new STAR diagram piece from a template, defining its title, slug, source path, and optional inputs, outputs, and dependencies for architecture visualization.
Instructions
Create a new STAR diagram piece from template
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": {
"slug": "<slug>",
"title": "<title>",
"function_path": "<function_path>"
},
"name": "create_diagram_piece"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Slug for the piece (e.g., 'api-handler') | |
| group | No | Group for viewer nav | ops |
| title | Yes | Human-readable title | |
| inputs | No | Input sources | |
| outputs | No | Outputs | |
| dependencies | No | Dependencies (services, APIs) | |
| function_path | Yes | Source file path (e.g., 'src/api/handler.py') |