NewAdd to your app

Your Cloud apps can search the web

Your app can now search the web and read web pages through Playcode. There is no search account or key to buy: each search uses your workspace's credits.

  • Ask the agent to add it. It writes the search into your app's backend, saves the results so the same question does not pay twice, and tests it with one real search.
  • AI agents in your app can research. playcode.web.tools() gives an agent two tools: one searches, one reads a page. What they return reaches the model as data, not as instructions.
  • A search costs 0.0912 credits. A page costs 0.0064 credits, or 0.01824 when only the fallback reader can open it, such as a PDF. The same search again within 5 minutes is free.
  • A daily limit for each app. Every app has a daily web search limit, 20 credits by default. See it, and change it, in the project's Settings, AI.

Pages that Playcode's agent reads now cost credits too. When the agent opens a web page for you, it costs 0.0064 credits, the same as in your app. Before, a page it opened itself was free.

Try it: Add a page with this week's news about electric bikes, found by a web search. Refresh it once an hour.