pyspur icon indicating copy to clipboard operation
pyspur copied to clipboard

Documentation: How to create custom tools?

Open 0xgirish opened this issue 9 months ago • 2 comments

On the website, it is mentioned that we can create our own tools, but I am unable to find anything on documentation or examples.

Image

0xgirish avatar Mar 02 '25 08:03 0xgirish

Hi Girish! Great question, we will update our docs soon to explain this better

It's fairly simple, here's an example: https://github.com/PySpur-Dev/pyspur/blob/main/backend/pyspur/nodes/integrations/firecrawl/firecrawl_scrape.py

  1. You define an input, output, and config class with the relevant attributes
  2. You add the node registry decorator. Currently, the registry assumes that your node is inside Pyspur's node folder, but you can also work around this if you want to keep your node file elsewhere.
  3. Your node should appear in the UI's "add nodes" panel

JeanKaddour avatar Mar 04 '25 11:03 JeanKaddour

where is the button of "add nodes"? I can not find it in UI

skVPN avatar Mar 06 '25 03:03 skVPN