Joern slice

From opensage-agent/opensage-adk · View interactive version

Joern slice is an AI agent skill from the GitHub repository opensage-agent/opensage-adk. Tool to get the program slice for a given function using Joern.

How to use this skill

Skill file

Joern Slice Tool

Tool to get the program slice for a given function using Joern.

Usage

/bash_tools/static_analysis/joern-slice/scripts/joern_slice.sh "function_name" --file-path "relative/path/to/file.py"

Parameters

function_name (required, positional position 0)

Type: str

Function name to slice.

--file-path (optional, named parameter)

Type: str

Optional file path where the function is defined.

Return Value

Returns plain text output listing slice information for each file, including file paths and line numbers.

Requires Sandbox

joern

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.