register_thread_pull
Track a pull request you opened outside the change flow on its task thread so the change sweep refreshes it and swarm metrics count it; the repository must be in the workspace egress allowlist.
Instructions
Track a pull request the change flow did not open (yours, from a session) on its task's thread, so the change sweep refreshes it and get_swarm_metrics counts it: its time to ready runs from the task's CLAIM: comment (else claimed_at, else now) to the ready-to-merge label, and its merge closes the task. The repository must be in the workspace egress allowlist (github or github_branch). A pull request another thread tracks is refused. The twin of PUT /threads/{id}/pull.
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": {
"thread_id": "<thread_id>",
"repo": "<repo>",
"pull_number": "<pull_number>"
},
"name": "register_thread_pull"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | owner/name, or a GitHub clone URL | |
| thread_id | Yes | ||
| claimed_at | No | when the task was claimed, for a claim said outside Maidan; a CLAIM: comment Maidan posted takes precedence | |
| pull_number | Yes |