get_thread_info
Retrieve thread information for a Java process by providing its process ID (PID). Returns thread details, count, and diagnostic data for JVM monitoring and analysis.
Instructions
获取指定进程的线程信息
Args:
pid (str): 进程ID,使用字符串形式(如:"12345")。
支持十进制和十六进制格式。
空字符串将返回错误信息。
Returns:
Dict: 包含线程信息的字典,包含以下字段:
- threads (List[Dict]): 线程信息列表
- thread_count (int): 线程数量
- raw_output (str): 原始输出
- timestamp (float): 时间戳
- success (bool): 是否成功
- error (Optional[str]): 错误信息
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": "get_thread_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No |