Grep across all scripts in the game
script-grepSearch decompiled Roblox scripts with JavaScript regex or literal string matching. Use for exact identifiers or code patterns; use semantic-search-scripts when behavior is known but names are not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of scripts to return results from (default: 10) | |
| query | Yes | Search pattern (JavaScript RegExp syntax). Set literal=true for an exact string match. | |
| literal | No | When true, treats the query as a plain literal string - no regex interpretation. Equivalent to grep -F / ripgrep -F. (default: false) | |
| maxResults | No | Maximum total number of matches across ALL scripts (default: 30). Use this to cap total matches, e.g. maxResults=1 to find just the first match. | |
| contextLines | No | Number of lines of context to show before and after each match (default: 1) | |
| caseSensitive | No | When false, matches case-insensitively. Equivalent to grep -i. (default: true) | |
| maxOutputChars | No | Maximum characters to return to the model (default: 6000, max: 32000). Raise only when a single result genuinely needs more; large outputs degrade model performance. | |
| maxMatchesPerScript | No | Maximum number of matches to return per script (default: 3) |