Find logics using a Luau API
search_codeFind Roblox logic examples that use a specific Luau symbol or Roblox API, returning matching code snippets with surrounding lines. Use for exact code references, not conceptual prose search.
Instructions
Find logics whose example code uses a specific Luau symbol or Roblox API — 'UpdateAsync', 'BindToClose', 'ProcessReceipt', 'RaycastParams', 'task.defer'. Returns a short snippet with surrounding lines. This is a literal substring match over code blocks, not prose search: use search_logics for conceptual questions.
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": {
"symbol": "<symbol>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results. | |
| symbol | Yes | Exact API name, method or identifier as it appears in code. Case-insensitive, no wildcards. |