comment
Places Ghidra listing annotations at addresses, labels, or function entry points, supporting plate, pre, eol, repeatable, and post annotation types to clarify code during reverse engineering.
Instructions
Set a Ghidra comment at an address, label, or function.
The comment is written at the resolved address. Function names resolve to
the function entry point. Supported comment types match Ghidra's listing
comment slots: `plate`, `pre`, `eol`, `repeatable`, and `post`.
Args:
target: Address, exact label, or function name to comment.
text: Replacement comment text.
program: Required Ghidra project path or name to target.
comment_type: One of `plate`, `pre`, `eol`, `repeatable`, or `post`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| target | Yes | ||
| program | Yes | ||
| comment_type | No | plate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |