Skip to main content
Nowledge MemNowledge Mem

Fs Grep

GET
/fs/grep

Content search. Returns path:line:match shaped hits.

Preview space contract: graph-wide projection. Phase 1 covers memory/crystal bodies, thread messages, and parsed Library documents. Memory grep can be narrowed with unit_type or a /memories/by-type/<unit_type> path.

Query Parameters

q*Q

Fixed string or regex pattern to find

Length1 <= length
path?Path

Nowledge FS path scope. Supports /memories, /threads, and /sources in this preview.

Default"/memories"
unit_type?|

Filter memory grep by unit type; also inferred from /memories/by-type/<unit_type> paths

limit?Limit
Range1 <= value <= 1000
Default200
cursor?|

Opaque pagination cursor

literal?|

When false, treat q as a regular expression

regex?Regex

Treat q as a regular expression

Defaultfalse
ignore_case?Ignore Case

Match without regard to case; true by default

Defaulttrue
case_sensitive?Case Sensitive

Force case-sensitive matching

Defaultfalse

Response Body

application/json

application/json

curl -X GET "https://example.com/fs/grep?q=string"
null