feat(tools): added new firecrawl agent endpoint#2603
Merged
waleedlatif1 merged 1 commit intostagingfrom Dec 27, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryAdded a new firecrawl agent endpoint that enables autonomous web data extraction using natural language prompts.
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant FirecrawlBlock
participant AgentTool
participant FirecrawlAPI
User->>FirecrawlBlock: Configure agent operation
User->>FirecrawlBlock: Set agentPrompt, urls, schema
FirecrawlBlock->>AgentTool: Execute with params
AgentTool->>FirecrawlAPI: POST /v2/agent
Note over AgentTool,FirecrawlAPI: Send prompt, urls, schema, maxCredits
FirecrawlAPI-->>AgentTool: Return jobId
loop Poll every 5 seconds (max 5 minutes)
AgentTool->>FirecrawlAPI: GET /v2/agent/{jobId}
FirecrawlAPI-->>AgentTool: Return status
alt status === 'completed'
AgentTool->>AgentTool: Extract data, creditsUsed, sources
AgentTool-->>FirecrawlBlock: Return success with data
FirecrawlBlock-->>User: Display extracted data
else status === 'failed'
AgentTool-->>FirecrawlBlock: Return error
FirecrawlBlock-->>User: Show error message
else status === 'processing'
AgentTool->>AgentTool: Wait 5 seconds
end
end
alt Timeout after 5 minutes
AgentTool-->>FirecrawlBlock: Return timeout error
FirecrawlBlock-->>User: Show timeout message
end
|
This was referenced Dec 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist