Class GuideService
java.lang.Object
com.shaft.mcp.GuideService
Searches the live official SHAFT user guide for MCP agents before they write SHAFT code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSearches the official SHAFT user guide and returns cited guidance, excerpts, and code examples.
-
Constructor Details
-
GuideService
public GuideService()Creates the default live guide search service.
-
-
Method Details
-
search
@Tool(name="shaft_guide_search", description="searches the live official SHAFT user guide before writing SHAFT tests, page objects, locators, API, GUI, CLI, mobile, troubleshooting, or best-practice code") public McpGuideSearchResult search(String query, int maxResults) Searches the official SHAFT user guide and returns cited guidance, excerpts, and code examples.- Parameters:
query- topic to search for, such as page objects, locators, API, GUI, CLI, properties, or failuresmaxResults- maximum matches to return; values are clamped to 1 through 5- Returns:
- official guide search result
-