get_jcmd_output
Execute jcmd subcommands to monitor and diagnose Java processes by providing process ID and optional subcommand parameters.
Instructions
执行 jcmd 子命令
Args:
pid (str): 进程ID,使用字符串形式(如:"12345")
subcommand (Optional[str]): jcmd子命令,如果不指定则执行help命令
Returns:
Dict: 包含jcmd执行结果的字典,包含以下字段:
- 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_jcmd_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| subcommand | No |