disasm
Disassemble GPU kernels to inspect generated SASS or PTX from cubin, PTX, SO, and EXE files, or locate the latest Triton cache kernel by name.
Instructions
Disassemble a kernel. target is a .cubin/.ptx/.so/.exe path, or 'triton-cache' to search
~/.triton/cache (and TRITON_CACHE_DIR) for the most recent kernel whose name contains
kernel. level: 'sass' (via cuobjdump -sass) or 'ptx' (cuobjdump -ptx / the .ptx file).
A real kernel is 500-3000 SASS lines; max_lines<=0 returns all of them.
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": {
"target": "<target>"
},
"name": "disasm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | sass | |
| kernel | No | ||
| target | Yes | ||
| max_lines | No |