grep_scripts
Search all script sources in a place for Lua patterns and return matching lines as path:line:text, helping you locate definitions or usages before editing.
Instructions
Search the Source of every script in the place and return matching lines as path:line: text. Read-only; stops at 500 matches. Use it to find where something is defined or used before editing. To find instances by name use search_objects; to replace text everywhere use find_and_replace_in_scripts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "grep_scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| pattern | Yes | Lua pattern (not a regex): magic characters ( ) . % + - * ? [ ^ $ need a % escape, e.g. "game%.Players". | |
| ignoreCase | No | Match regardless of case. Default false. |