Search the Hammerspoon API
hs_api_searchSearch Hammerspoon API documentation to find exact signatures for functions, methods, and modules before writing Lua code.
Instructions
Search Hammerspoon's own API documentation for functions, methods, constants, and modules. Returns exact signatures. Use this before writing Lua so calls are correct the first time, rather than discovering a wrong name from a runtime error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results. | |
| query | Yes | What to look for. A qualified name like "hs.window.setFrame", a bare name like "setFrame", or words to match against summaries like "screen frame". | |
| module | No | Restrict results to modules whose name contains this, for example "window". |