set_badge
Display custom translucent text on an iTerm2 session badge for easy identification.
Instructions
Set the iTerm2 session badge (translucent overlay text).
The profile's Badge field must reference \(user.badge) for the value
to show up; this is the default in stock profiles.
:param badge: Text to display as the badge. :param session_id: Target session UUID. Defaults to the active session.
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": {
"badge": "<badge>"
},
"name": "set_badge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| badge | Yes | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |