read
theme

Finds lines matching a query across the text files of a branch: each hit is a path, a 1-based line number and the line (

Changed on

Finds lines matching a query across the text files of a branch: each hit is a path, a 1-based line number and the line (cut at 500 characters). Literal by default; regex: true takes a Postgres regular expression. Narrow with glob (sections/*.liquid, ** crosses folders). Runs under a 10 s limit: a search that passes it answers search_timeout, narrow it and try again. Paged by path and line.

post/api/v1/tools/theme_search

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopestheme:read

Request body

object required
query, string required

What to find, 1 to 500 characters.

regex, boolean

Read query as a regular expression (default false).

case_sensitive, boolean

Match case exactly (default false).

branch, string

live (the imported theme, default) or a working branch chat/<uuid> / api/<uuid>.

glob, string

Only paths matching this glob.

cursor, string

The page.next_cursor of the previous page.

limit, integer

Page size, default 25.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision