get_function
Retrieve detailed information about a Magic API function, including its script content, by providing the function's ID or name.
Instructions
获取函数详情(含脚本)。ref 为 id 或 name。
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": {
"ref": "<ref>"
},
"name": "get_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes |