load_cpg
Loads a Code Property Graph (CPG) from a specified file path for code review and security analysis. Ensures the correct CPG is active in the Joern MCP Server.
Instructions
Loads a CPG from a file if the cpg is not loaded or the cpg is not the same as the filepath.
Args:
cpg_filepath (str): The path to the CPG file, the filepath is absolute path.
Returns:
str: True if the CPG is loaded successfully, False otherwise.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cpg_filepath | Yes |
Input Schema (JSON Schema)
{
"properties": {
"cpg_filepath": {
"title": "Cpg Filepath",
"type": "string"
}
},
"required": [
"cpg_filepath"
],
"title": "load_cpgArguments",
"type": "object"
}