search_requests
Search captured HTTP traffic by keyword to analyze API structures and generate client-side code from network history.
Instructions
Search requests by keyword.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | ||
| search_in | No | all | |
| limit | No |
Implementation Reference
- src/proxypin_mcp/server.py:80-93 (handler)Implementation of the `search_requests` tool, which searches for requests based on a keyword and optional search area/limit.
@mcp.tool() def search_requests( keyword: str, search_in: str = "all", limit: int = 20, ) -> str: """Search requests by keyword.""" if not keyword.strip(): return _json_response({"error": "keyword is required"}) normalized_search_in = search_in if search_in in VALID_SEARCH_AREAS else "all" normalized_limit = _bounded_limit(limit, default=20, maximum=100) results = reader.search(keyword, normalized_search_in, normalized_limit) return _json_response(results)