Search the CDS model (CAP)
search_modelFind CAP CDS definitions by fuzzy name search across entities, views, services, types, aspects, events, and actions, with optional kind filters.
Instructions
Performs fuzzy searches against names of definitions from the compiled CDS model of a CAP project: entities, views (projections), services, types, aspects, events, actions. CDS parses all .cds files into a unified model including relationships and annotations. Example: searchModel(projectPath, 'Books', 'entity').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Filter by definition kind | all |
| limit | No | Max results per page | |
| query | Yes | Fuzzy query, e.g. 'book', 'Orders', 'my.bookshop' | |
| offset | No | Results to skip (use nextOffset from a previous call) | |
| projectPath | No | CAP project root (default workspace root) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Items returned in this response | |
| total | Yes | Total items matching the request | |
| offset | Yes | Offset of the first returned item | |
| hasMore | Yes | True when more items are available | |
| results | Yes | ||
| namespaces | Yes | ||
| nextOffset | Yes | Offset to request next, or null on the last page | |
| sourcesParsed | Yes | ||
| totalDefinitions | Yes |