Skip to main content
Search section content by text. Returns matching sections with document context. Searches the default branch (main) of all documents.

Parameters

ParameterTypeRequiredDescription
querystringYesText to search for (case-insensitive)
filesystemstringNoFilesystem slug. Omit to search all accessible filesystems
pathstringNoScope search to a path prefix (e.g., "/guides/")
limitintegerNoMax results (default: 20)

Response

Array of matching sections, each with:
{
  "sectionId": "uuid",
  "sectionName": "Authentication",
  "position": 2,
  "documentId": "uuid",
  "documentPath": "/engineering/api-guide",
  "snippet": "...text around the match..."
}

Limitations

  • Only searches content committed to main
  • Does not include uncommitted working changes
  • Does not search feature branches
  • Use find + read to inspect branch content

Examples

"Find sections about authentication"
→ search({query: "authentication"})

"Search for OAuth in the engineering docs"
→ search({query: "OAuth", path: "/engineering/"})

Typical Workflow

1. search({query: "deployment"})      → find relevant sections
2. read({items: [{type: "section", documentId, sectionId}]}) → read full content
3. sections({action: "update", ...})  → edit if needed
  • find — discover documents and sections by path or tag
  • read — fetch full section content by ID