lookup_stock_code
Resolve 'stock code not found' errors by looking up the correct HKEXnews stockId mapping for a Hong Kong stock code.
Instructions
Look up HKEXnews stockId mapping for a Hong Kong stock code. Diagnostic tool.
<critical_rules>
Prefer refresh=false first (local cache). Use refresh=true only if cache is empty or the code is still missing. </critical_rules>
Args: stock_code: 5-digit HK stock code, e.g. "00700" or "700" refresh: Force re-download of company mappings (default: false)
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": {
"stock_code": "<stock_code>"
},
"name": "lookup_stock_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| stock_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |