check_function_call
Determine if a function calls another function by analyzing references between source and target files, confirming direct call relationships.
Instructions
Check if one function calls another (direct call). Analyzes if 'sourceFunction' (defined in sourceFile) contains any references to 'targetFunction' (defined in targetFile).
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": {
"sourceFile": "<sourceFile>",
"sourceFunction": "<sourceFunction>",
"targetFile": "<targetFile>",
"targetFunction": "<targetFunction>"
},
"name": "check_function_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceFile | Yes | The absolute path to the file containing the definition of the caller function | |
| targetFile | Yes | The absolute path to the file containing the definition of the callee function | |
| sourceFunction | Yes | The name of the caller function (e.g. 'main') | |
| targetFunction | Yes | The name of the callee function (e.g. 'add') |