search_scripts
Search Roblox Studio script sources for plain text or Lua patterns, returning matching paths with line numbers and matching line text.
Instructions
Search the source of all scripts under searchIn for a plain-text (or Lua pattern) query. Returns matching script paths with line numbers and line text.
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": {
"query": "<query>"
},
"name": "search_scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text to search for | |
| client | No | Target a specific Studio client by name (as shown on the panel, e.g. "studio"). Omit to auto-pick: the only active client, or the most recently active one when several are connected. | |
| pattern | No | Treat query as a Lua pattern instead of plain text (default false) | |
| searchIn | No | Path to root for search. Default: game | |
| maxResults | No | Max matching lines to return (default 100) | |
| caseSensitive | No | Case-sensitive match (default false) |