Skip to main content

find_in_file

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: core  ·  Module: services.tools.find_in_file

Description

Searches a file with a regex pattern and returns line numbers and excerpts.

Parameters

NameTypeRequiredDescription
uristryesThe resource URI to search under Assets/ or file path form supported by read_resource
patternstryesThe regex pattern to search for
project_rootstr | NoneOptional project root path
max_resultsintCap results to avoid huge payloads
ignore_casebool | str | NoneCase insensitive search

Returns

A dict containing the Unity response. The exact shape depends on the action.

Examples

No examples yet. Add usage examples here — they will be preserved across regenerations.