search_fields
Search game fields by name to return their owning class and field type, enabling you to locate targets like health or coins before hooking or reading memory.
Instructions
按名字搜索字段,返回所属类与字段类型。按字段名搜(定位「金币」「血量」这类目标的首选入口)。
total 是真实匹配总数(不受 limit 影响),配合 offset/limit 翻页。
owner 限定单个类;同名类跨程序集时会拒绝并给候选,可用 assembly= 消歧。
Args: pattern: 字段名子串(大小写不敏感)。 offset: 跳过前多少条(配合 total / has_more 翻页)。 limit: 本页最多返回多少条(上限 2000)。 owner: 限定在某一个类里搜。接受完整类名或短名,但短名必须唯一: 若命中多个同名类(常见于不同程序集),本工具会拒绝并返回 candidates,此时请改用完整类名或用 assembly 消歧。 为什么不猜:把两个无关类的字段混在一起返回,ok 仍是 true, 但算出来的偏移必然错,且要到运行时才暴露。 assembly: 程序集名子串,仅用于在 owner 命中多个类时消歧。
Returns:
{ok, handle, total, offset, limit, returned, has_more, items}
total 是真实匹配总数;若超过句柄上限会带 handle_truncated
与 handle_note(翻页请用本工具的 offset,不要依赖句柄拿全集)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| owner | No | ||
| offset | No | ||
| pattern | Yes | ||
| assembly | No |