network-graph.json•2.4 kB
{
"name": "generate_network_graph",
"description": "Generate a network graph chart to show relationships (edges) between entities (nodes), such as, relationships between people in social networks.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"nodes": {
"type": "array",
"minItems": 1,
"items": {
"properties": {
"name": {
"type": "string"
}
},
"required": ["name"],
"type": "object"
}
},
"edges": {
"type": "array",
"items": {
"properties": {
"name": {
"type": "string",
"default": ""
},
"source": {
"type": "string"
},
"target": {
"type": "string"
}
},
"required": ["source", "target"],
"type": "object"
}
}
},
"required": ["nodes", "edges"],
"description": "Data for network graph chart, such as, { nodes: [{ name: 'node1' }, { name: 'node2' }], edges: [{ source: 'node1', target: 'node2', name: 'edge1' }] }"
},
"theme": {
"default": "default",
"description": "Set the theme for the chart, optional, default is 'default'.",
"enum": ["default", "academy", "dark"],
"type": "string"
},
"style": {
"description": "Custom style configuration for the chart.",
"properties": {
"texture": {
"default": "default",
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
"enum": ["default", "rough"],
"type": "string"
}
},
"type": "object"
},
"width": {
"type": "number",
"description": "Set the width of chart, default is 600.",
"default": 600
},
"height": {
"type": "number",
"description": "Set the height of chart, default is 400.",
"default": 400
}
},
"required": ["data"]
}
}