kosis_collect
Fetch statistical table values from KOSIS and save them to xlsx, csv, json, or sqlite. Automatically adapts to each table's variable classification columns and axis levels.
Instructions
통계표 수치를 받아 xlsx/csv/json/sqlite 로 저장한다.
⚠️ 분류 축이 표마다 다르므로 열 구성이 가변이다 — 분류 이름이 그대로 열이 된다.
축 개수도 표마다 다르지만 obj_l2~obj_l8 을 비워 두면 자동으로 맞춘다.
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": {
"org_id": "<org_id>",
"tbl_id": "<tbl_id>",
"prd_se": "<prd_se>",
"out_dir": "<out_dir>"
},
"name": "kosis_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| name | No | kosis | |
| items | No | ALL | |
| start | No | ||
| obj_l1 | No | ALL | |
| obj_l2 | No | ||
| obj_l3 | No | ||
| obj_l4 | No | ||
| obj_l5 | No | ||
| obj_l6 | No | ||
| obj_l7 | No | ||
| obj_l8 | No | ||
| org_id | Yes | ||
| prd_se | Yes | ||
| recent | No | ||
| tbl_id | Yes | ||
| formats | No | ||
| out_dir | Yes |