List comments and work notes
journal_listLists a ServiceNow record's customer-visible comments and internal work notes, newest first, with type filtering and paging.
Instructions
List the comments (customer-visible) and work notes (internal) of a record, newest first. Reads sys_journal_field, so a record with no entries returns an empty list. Use the table the record itself is in (e.g. incident, not its parent task).
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": {
"table": "<table>",
"sysId": "<sysId>"
},
"name": "journal_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Which entries: comments, work_notes or all (default). | |
| limit | No | Maximum records to return. Defaults to the configured default, capped at maxRecords. | |
| sysId | Yes | The record sys_id (32 hex characters). | |
| table | Yes | Table name, e.g. incident or cmdb_ci_server. | |
| offset | No | Records to skip (paging). Use nextOffset from the previous result. | |
| instance | No | Instance alias from the config (see instance_list). Defaults to the default instance. |