addedInput schema / properties / binaryAs
Added value: +{
+ "default": "base64",
+ "description": "How a screenshot or a PDF comes back. `base64` is the only value today.",
+ "enum": [
+ "base64",
+ "url"
+ ],
+ "type": "string"
+}
addedInput schema / properties / block
Added value: +{
+ "additionalProperties": false,
+ "description": "What not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\\.svg$`, not `*.svg`.",
+ "properties": {
+ "resourceTypes": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "urlPatterns": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / controls
Added value: +{
+ "additionalProperties": false,
+ "description": "Options for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.",
+ "properties": {
+ "limit": {
+ "maximum": 1000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "visibleOnly": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / formats / default
Added value: +[
+ "markdown"
+]
changedInput schema / properties / formats / description
Previous value: -"Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt`."New value: +"Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`."
addedInput schema / properties / formats / maxItems
Added value: +9
addedInput schema / properties / formats / minItems
Added value: +1
changedInput schema / properties / html / description
Previous value: -"Raw HTML instead of `url`."New value: +"Raw HTML instead of `url`, for a page you already have. Nothing leaves for the network."
addedInput schema / properties / html / minLength
Added value: +1
addedInput schema / properties / json / additionalProperties
Added value: +false
changedInput schema / properties / json / description
Previous value: -"For the `json` format: `prompt` and/or `schema`."New value: +"For the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both."
addedInput schema / properties / json / properties / model
Added value: +{
+ "minLength": 1,
+ "type": "string"
+}
addedInput schema / properties / json / properties / prompt / minLength
Added value: +1
addedInput schema / properties / json / properties / schema / additionalProperties
Added value: +{}
addedInput schema / properties / links
Added value: +{
+ "additionalProperties": false,
+ "description": "Options for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.",
+ "properties": {
+ "excludeExternal": {
+ "type": "boolean"
+ },
+ "visibleOnly": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / maxAge / maximum
Added value: +604800000
addedInput schema / properties / maxAge / minimum
Added value: +0
changedInput schema / properties / maxAge / type
Previous value: -"number"New value: +"integer"
addedInput schema / properties / pdf
Added value: +{
+ "additionalProperties": false,
+ "description": "Options for the `pdf` format: `format` (a4, letter, legal…), `landscape`, `printBackground`, `scale` 0.1 to 2.",
+ "properties": {
+ "format": {
+ "enum": [
+ "letter",
+ "legal",
+ "tabloid",
+ "ledger",
+ "a0",
+ "a1",
+ "a2",
+ "a3",
+ "a4",
+ "a5",
+ "a6"
+ ],
+ "type": "string"
+ },
+ "landscape": {
+ "type": "boolean"
+ },
+ "printBackground": {
+ "type": "boolean"
+ },
+ "scale": {
+ "maximum": 2,
+ "minimum": 0.1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / request
Added value: +{
+ "additionalProperties": false,
+ "description": "How to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.",
+ "properties": {
+ "auth": {
+ "additionalProperties": false,
+ "properties": {
+ "password": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "username",
+ "password"
+ ],
+ "type": "object"
+ },
+ "cookies": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "domain": {
+ "type": "string"
+ },
+ "httpOnly": {
+ "type": "boolean"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "secure": {
+ "type": "boolean"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "headers": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "userAgent": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / screenshot
Added value: +{
+ "additionalProperties": false,
+ "description": "Options for the `screenshot` format: `fullPage` for the whole page, `type` (png, jpeg, webp), `quality` 1-100 (not with png), `omitBackground`, `selector` to capture one element, and its own `viewport`.",
+ "properties": {
+ "fullPage": {
+ "type": "boolean"
+ },
+ "omitBackground": {
+ "type": "boolean"
+ },
+ "quality": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "selector": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "png",
+ "jpeg",
+ "webp"
+ ],
+ "type": "string"
+ },
+ "viewport": {
+ "additionalProperties": false,
+ "properties": {
+ "deviceScaleFactor": {
+ "maximum": 3,
+ "minimum": 0.1,
+ "type": "number"
+ },
+ "height": {
+ "maximum": 4096,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "width": {
+ "maximum": 4096,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "width",
+ "height"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+}
changedInput schema / properties / selectors / description
Previous value: -"CSS selectors for `elements`."New value: +"CSS selectors for the `elements` format."
addedInput schema / properties / selectors / items / minLength
Added value: +1
addedInput schema / properties / selectors / minItems
Added value: +1
addedInput schema / properties / url / format
Added value: +"uri"
addedInput schema / properties / viewport
Added value: +{
+ "additionalProperties": false,
+ "description": "The window to render in: `width`, `height`, `deviceScaleFactor`.",
+ "properties": {
+ "deviceScaleFactor": {
+ "maximum": 3,
+ "minimum": 0.1,
+ "type": "number"
+ },
+ "height": {
+ "maximum": 4096,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "width": {
+ "maximum": 4096,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "width",
+ "height"
+ ],
+ "type": "object"
+}
addedInput schema / properties / wait / additionalProperties
Added value: +false
changedInput schema / properties / wait / description
Previous value: -"When to consider the page loaded: `until`, `selector`, `timeout`."New value: +"When to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms."
addedInput schema / properties / wait / properties / selector / minLength
Added value: +1
addedInput schema / properties / wait / properties / timeout / maximum
Added value: +60000
addedInput schema / properties / wait / properties / timeout / minimum
Added value: +100
changedInput schema / properties / wait / properties / timeout / type
Previous value: -"number"New value: +"integer"
removedInput schema / required
Removed value: -[]