watch_method
Monitor Java method calls in real-time by tracking execution parameters, return values, and invocation frequency for debugging and performance analysis.
Instructions
监控方法的调用情况
Args:
pid (str): 进程ID,使用字符串形式(如:"12345")
class_pattern (str): 类名表达式匹配
method_pattern (str): 方法名表达式匹配
watch_params (bool): 是否监控方法参数
watch_return (bool): 是否监控方法返回值
condition (Optional[str]): 条件表达式
max_times (str): 最大监控次数,使用字符串形式(如:"10")
Returns:
Dict: 包含方法监控信息的字典(暂未实现)
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": "watch_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| class_pattern | No | ||
| method_pattern | No | ||
| watch_params | No | ||
| watch_return | No | ||
| condition | No | ||
| max_times | No | 10 |