Start search
start_searchUse this when the user wants to find filenames or perform a content search under a path and does not need every matching file read in full. Use read_files instead when a glob is already known and the contents of every matched file are the desired result. Starts a search session and returns the first matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the directory or file to search. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| pattern | Yes | Regular expression for content searches, or a glob such as "*.ts" when searchType is files. | |
| ignoreCase | No | Case-insensitive content matching. | |
| maxResults | No | Stop the search after this many results. Default 200. | |
| searchType | No | Search file contents (default) or file names. | |
| filePattern | No | Optional relative glob that limits which files are searched, such as "*.ts". | |
| contextLines | No | Number of context lines to return around each content match, up to 10. | |
| includeHidden | No | Include hidden files and directories. | |
| literalSearch | No | Treat the pattern as literal text instead of a regular expression. | |
| includeIgnored | No | Also search directories normally skipped, such as node_modules, dist, build, and virtualenvs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Optional structured result data for follow-up reasoning and tool calls. | |
| text | Yes | Concise human-readable result of the tool call. |