pending
Count unread messages and open tasks waiting for an agent without marking anything read. If the count is above zero, fetch messages or list tasks to act.
Instructions
Read-only count of unread messages + open tasks waiting for you. Marks nothing read — the interactive nudge; if it returns > 0, call fetch_messages / list_tasks.
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": {
"agentId": "<agentId>"
},
"name": "pending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| repoId | No | ||
| agentId | Yes | ||
| projectId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openTasks | Yes | ||
| unreadMessages | Yes |