whoami
Identify the active conversation ID for the current session by resolving from environment overrides, process tree arguments, or file modification time heuristics.
Instructions
Return this conversation's detected conversation_id + how we know.
Resolution order:
'forced': THREADKEEPER_FORCE_CID env (set by spawn() for children)
'ppid': walk up process tree → claude --resume/--session-id
'mtime': fallback heuristic (latest jsonl mtime; flaps under concurrent peer activity)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whoami"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |