generate_spider_template
Generate a production-ready spider from a crawl blueprint, matching your configured fields, selectors, and crawling options.
Instructions
Generate a production starter spider that mirrors the crawl blueprint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blueprint": "<blueprint>"
},
"name": "generate_spider_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | No | auto | |
| blueprint | Yes | ||
| class_name | No | GeneratedSpider |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| class_name | Yes | ||
| spider_name | Yes | ||
| template_variant | Yes |