Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Container → Search Text
AI-generatedSummary
Search for literal text within files inside a container
Inputs
- containerId (required) — Container name or full/short container ID
- workingPath — Absolute path inside the container. Relative file paths resolve from here. Linux containers only.
- glob — Optional shell-style pattern to filter candidate files
- query (required) — Literal text to search for inside files under Working Path
- caseSensitive — Whether matching should respect letter case
- searchTextReturnAll — Whether to return every text match or only up to a given limit
- searchTextLimit — Max number of matches to return
Output shape
array of objects each containing file path, line number, and matched text
Returns an empty array if no matches; respects searchTextReturnAll and searchTextLimit to control number of results
Examples
Example 1: Search for TODO comments in workspace files
containerId: cd17c922acd6, workingPath: /workspace, query: TODO, caseSensitive: false, searchTextReturnAll: true, searchTextLimit: 10
Example 2: Find stack traces in application logs
containerId: my-service, workingPath: /var/log, glob: *.log, query: stack trace, caseSensitive: true, searchTextReturnAll: false, searchTextLimit: 5