changedInput schema / properties / formats / description
Previous value: -"Same as scrape."New value: +"What to return (default markdown): markdown, links, html, rawHtml, images, tables, json, attributes ({ selectors }), list ({ itemSelector?, fields? }: a record per repeated item, detected without itemSelector), screenshot or screenshot@fullPage (browser only). On an account's credits a browser page costs 5; with fewer left, a screenshot is refused."
addedInput schema / properties / formats / items
Added value: +{
+ "anyOf": [
+ {
+ "enum": [
+ "markdown",
+ "links",
+ "json",
+ "html",
+ "rawHtml",
+ "images",
+ "tables",
+ "screenshot",
+ "screenshot@fullPage"
+ ],
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "modelFallback": {
+ "type": "boolean"
+ },
+ "prompt": {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ "schema": {
+ "type": "object"
+ },
+ "type": {
+ "const": "json"
+ }
+ },
+ "required": [
+ "type",
+ "schema"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "selectors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attribute": {
+ "maxLength": 100,
+ "minLength": 1,
+ "pattern": "^[A-Za-z_][A-Za-z0-9_:.-]*$",
+ "type": "string"
+ },
+ "selector": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "selector",
+ "attribute"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "type": {
+ "const": "attributes"
+ }
+ },
+ "required": [
+ "type",
+ "selectors"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attribute": {
+ "pattern": "^[A-Za-z_][A-Za-z0-9_:.-]*$",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "selector": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "itemSelector": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "list"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fullPage": {
+ "type": "boolean"
+ },
+ "quality": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "type": {
+ "const": "screenshot"
+ },
+ "viewport": {
+ "additionalProperties": false,
+ "properties": {
+ "height": {
+ "maximum": 1080,
+ "minimum": 240,
+ "type": "integer"
+ },
+ "width": {
+ "maximum": 1920,
+ "minimum": 320,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "width",
+ "height"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ]
+}