find_scripts_by_content
Locate C# scripts matching a specified type or pattern, with optional namespace filtering to narrow results.
Instructions
Find C# scripts that contain a type or pattern (e.g. MonoBehaviour, ScriptableObject, or custom). Optionally filter by namespace.
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": "find_scripts_by_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Pattern to search for, e.g. MonoBehaviour or a type name | |
| namespace_filter | No | Optional namespace pattern, e.g. Game.* |