add_comment
Add comments to binary code addresses in IDA Pro to document analysis, with options for regular, repeatable, anterior, posterior, or function comments.
Instructions
Add a comment at the specified address.
Comment types:
- regular: Standard comment shown at the address
- repeatable: Comment that appears at all references to this address
- anterior: Comment line(s) shown before the address
- posterior: Comment line(s) shown after the address
- function: Comment for the entire function (address must be within a function)
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": {
"address": "<address>",
"comment": "<comment>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Address to add comment to | |
| comment | Yes | Comment text to add | |
| comment_type | No | Type of comment: 'regular', 'repeatable', 'anterior', 'posterior', or 'function' | regular |