HomeTool modules

Extending Your Firecrawl Tool Module

Now that you've got your basic Firecrawl tool up and running, let's explore some exciting ways you can extend its capabilities! We'll look at several features you might want to add while keeping everything aligned with Naptha's best practices.

Feel free to implement these extensions based on your specific needs. Each one adds valuable functionality to your tool!

Want to Add Crawling Support?

If you'd like to recursively search through subdomains and gather content, here's how you can implement that:

2. Enhanced Schema Support

You can enhance your schema to support additional features. Here's how you might extend it:

Want Multiple Output Formats?

If you'd like to support various output formats, here's a pattern you can follow:

Best Practices to Keep in Mind

1. Error Handling

Follow Naptha's error handling patterns:

Want Better Logging?

You can implement comprehensive logging like this:

3. Code Organization

Maintain a clear structure:

4. Environment Management

We placed API keys and sensitive configuration in environment variables:

This pattern ensures security while maintaining flexibility across environments.

Next Steps

Consider these advanced extensions:

  1. Implement caching for frequently accessed URLs
  2. Add support for custom headers and authentication
  3. Implement parallel processing for batch operations
  4. Add result storage using Naptha's storage system

Have questions about these extensions? Join our community where we love sharing ideas and best practices! →