line_search_guide
Search Norton Guide database entries for lines matching a query. Returns matching entries with line index and plain text content.
Instructions
Search all entries in a Norton Guide for lines matching a query string.
The search is performed on plain text (markup stripped) and returns all entries that contain at least one matching line.
Args:
path: Absolute path to the .ng file.
query: The text string to search for.
case_sensitive: When True, the search is case-sensitive. Defaults
to False.
Returns: A list of match dictionaries. Each dictionary contains:
- ``offset`` (int): Byte offset of the matching entry.
- ``type`` (str): ``"short"`` or ``"long"``.
- ``matching_lines`` (list[dict]): Each item has:
- ``line_index`` (int): Zero-based line number within the entry.
- ``text`` (str): Plain-text content of the matching line.Raises: FileNotFoundError: If path does not point to an existing file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | Yes | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |