Skip to main content
Search for text patterns and return matching nodes with character positions and matched text. Designed for agent workflows that need to identify exactly which nodes to tag or link to data attributes.

Usage

Flags

Output Fields

Examples

Locate Words Matching a Pattern

Locate on a Specific Page

Agent Workflow: Locate then Tag

Use locate instead of grep when you need the nodeId for subsequent tag or data set-attribute operations. The matchText field confirms exactly what was matched.
Filter by --type word for precise single-token matches, or --type line for broader context.