label
Adds text annotations to selected atoms using a Python expression over atom properties, including residue-level or per-atom annotations.
Instructions
Adds labels to atoms in the selection
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": {
"selection": "<selection>"
},
"name": "label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selection | Yes | Atoms to label. Use ``name CA`` to get one label per residue rather than one per atom. | |
| expression | No | Python expression over atom properties, e.g. ``"%s%s" % (resn, resi)`` or ``resi``. | name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |