visualize_data
Run a SELECT query against a SQLite database and render the results as bar, line, or scatter chart images using chosen x and y columns.
Instructions
SQLiteからデータを取得し、グラフを生成して画像として返します。
- db_path: .dbファイルのフルパス(許可ディレクトリ内のみ)
- sql: 実行するSELECTクエリ(最大10,000件)
- x_col: X軸にするカラム名
- y_col: Y軸にするカラム名
- chart_type: 'bar' (棒), 'line' (折れ線), 'scatter' (散布図)
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": {
"db_path": "<db_path>",
"sql": "<sql>",
"x_col": "<x_col>",
"y_col": "<y_col>"
},
"name": "visualize_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| title | No | SQL Query Result | |
| x_col | Yes | ||
| y_col | Yes | ||
| db_path | Yes | ||
| chart_type | No | bar |