index_records
Bulk-index extracted records into the yearly Elasticsearch index cnreport-{year} for searchable financial report data.
Instructions
Bulk-index extracted records into cnreport-{year}.
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": {
"records": "<records>",
"year": "<year>",
"report_id": "<report_id>",
"section_id": "<section_id>"
},
"name": "index_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | report year → determines the index name. | |
| company | No | ||
| records | Yes | list of record dicts (e.g. from ai_extract). | |
| section | No | ||
| report_id | Yes | ||
| section_id | Yes | ||
| stock_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||