Search player or entity inventory. To search inventory of an entity, hover on the entity and click CONTROL + SHIFT + F. Click the results to set to cursor stack.