Overview
Search SDD artifacts by text, ID, type, or domain. Returns matching artifacts with relevance scores. Use to find requirements, use cases, tasks, or any pipeline artifact. The query tool uses a scoring algorithm that prioritizes exact ID matches, followed by partial ID matches, title matches, file path matches, code references, test references, and category matches.Parameters
Search text — matches against artifact ID, title, file path, and code/test refs
Filter by artifact type:
REQ, UC, WF, API, BDD, INV, ADR, NFR, RN, FASE, TASKFilter by business domain (e.g. ‘Security & Auth’, ‘Frontend & UI’)
Max results to return
Response
The search query that was executed
Number of matching artifacts returned
Total number of artifacts searched
Array of matching artifacts, sorted by relevance score
Artifact ID
Artifact type (REQ, UC, BDD, etc.)
Artifact title
Source file path
Relevance score (higher is better)
Reasons for the match (e.g. “exact ID match”, “title match”, “code ref: function in file.ts”)
Whether artifact has code references
Whether artifact has test references
Whether artifact has commit references
Scoring algorithm
The tool uses a weighted scoring system:- Exact ID match: 100 points
- Partial ID match: 60 points
- Title match: 40 points
- Code reference match: 30 points
- Test reference match: 25 points
- File path match: 20 points
- Category match: 15 points
Examples
Search for authentication requirements
Find a specific artifact by ID
Search within a business domain
Find artifacts referencing specific code
TypeScript types
See also
- sdd_context - Get complete details for a specific artifact
- sdd_coverage - Analyze coverage gaps across the pipeline