({ searches }, settings)
| 146 | })) |
| 147 | }), |
| 148 | async execute({ searches }, settings) { |
| 149 | const res = await Promise.all(searches.map(s => search(s, settings))) |
| 150 | return [{ |
| 151 | type: 'text', |
| 152 | contentText: JSON.stringify(res, null, 2) |
| 153 | }] |
| 154 | } |
| 155 | }, { |
| 156 | type: 'tool', |
| 157 | name: 'crawl', |