get_class_info
Retrieve detailed class information from Java processes by specifying class patterns, process IDs, and optional filters like field details and regex matching.
Instructions
获取类信息
Args:
pid: 进程ID
class_pattern: 类名表达式匹配
show_detail: 是否显示详细信息,默认false
show_field: 是否显示成员变量信息(需要show_detail=True),默认false
use_regex: 是否使用正则表达式匹配,默认false
depth: 指定输出静态变量时属性的遍历深度,默认1
classloader_hash: 指定class的ClassLoader的hashcode,默认None
classloader_class: 指定执行表达式的ClassLoader的class name,默认None
max_matches: 具有详细信息的匹配类的最大数量
Input Schema
Name | Required | Description | Default |
---|---|---|---|
class_pattern | Yes | ||
classloader_class | No | ||
classloader_hash | No | ||
depth | No | ||
max_matches | No | ||
pid | Yes | ||
show_detail | No | ||
show_field | No | ||
use_regex | No |
Input Schema (JSON Schema)
{
"properties": {
"class_pattern": {
"title": "Class Pattern",
"type": "string"
},
"classloader_class": {
"default": null,
"title": "Classloader Class",
"type": "string"
},
"classloader_hash": {
"default": null,
"title": "Classloader Hash",
"type": "string"
},
"depth": {
"default": null,
"title": "Depth",
"type": "integer"
},
"max_matches": {
"default": null,
"title": "Max Matches",
"type": "integer"
},
"pid": {
"title": "Pid",
"type": "integer"
},
"show_detail": {
"default": false,
"title": "Show Detail",
"type": "boolean"
},
"show_field": {
"default": false,
"title": "Show Field",
"type": "boolean"
},
"use_regex": {
"default": false,
"title": "Use Regex",
"type": "boolean"
}
},
"required": [
"pid",
"class_pattern"
],
"title": "get_class_infoArguments",
"type": "object"
}