get_symbol_address
Retrieve the memory address of a function or global variable symbol after loading an ELF file.
Instructions
查询符号(函数/全局变量)的内存地址。 需要先调用 load_elf() 加载 ELF 文件。
Args: symbol: 符号名称,如 "main"、"SystemCoreClock"、"g_counter"。
Returns: 符号名称和对应的内存地址。
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": {
"symbol": "<symbol>"
},
"name": "get_symbol_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |