sw_search
Start here. Finds Star Wars entities by name (title for FILMS) with a case-insensitive substring match: 'sky' finds Luke, Anakin and Shmi Skywalker. Returns a JSON array of full entities; an empty array [] means no match; pass fields to shorten each entity. The id to pass to sw_get is the last segment of each entity's url field. Data covers Episodes I-VI only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Name or title fragment, case-insensitive (e.g. 'falcon', 'hope'). | |
| fields | No | Optional. Field names to keep in each entity (url is always kept), e.g. ["name"] (FILMS: ["title"]). Up to 24 names; an unknown name returns a tool error listing the valid ones. Omit for full entities. | |
| resource | Yes | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |