list_pending_work
List the user's recent visible work queue items.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | No | Maximum number of items to return. Default: 20. |
before_id |
integer | No | Return items before this ID for pagination. |
Example
curl -X POST https://ghit.example/api/v1/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_pending_work",
"arguments": {
"limit": 10
}
}
}'
Response
Returns a list of work queue items visible to the authenticated user, ordered by recency. Each item includes the repo, thread or pull reference, and current status. The response is returned as a text content block inside the standard MCP tool result.