{ "openapi": "3.0.1", "info": { "title": "AaronBrowser", "version": "v1" }, "servers": [ { "url": "https://aaron-web-browser.aaronplugins.com" } ], "paths": { "/api/browser/get": { "post": { "operationId": "Crawl", "summary": "Crawls the given link and retrieves the HTML page's information.", "requestBody": { "description": "Body containing the link to be crawled.", "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/browseRequestBody" } } } }, "responses": { "200": { "description": "Information about the HTML page from the crawled link.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/browseResponseBody" } } } }, "400": { "description": "Information about the HTML page from the crawled link.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/browsingFailedBody" } } } } } } }, "/api/browser/wiki": { "get": { "operationId": "SearchInWiki", "description": "Searches the wiki with the given query and retrieves the information.", "parameters": [ { "name": "q", "in": "query", "description": "Query string to search in the wiki.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/browseResponseBody" } } } }, "400": { "description": "Bad response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/browsingFailedBody" } } } } } } } }, "components": { "schemas": { "browseRequestBody": { "type": "object", "properties": { "query": { "type": "string", "description": "A brief instruction or description related to the link." }, "link": { "type": "string", "description": "This parameter accepts either a URL or a plain text string. If provided with a URL, the model will access the webpage to gather or engage with its content. If given a plain text string, the model will treat it as a search query to find related real-time information. For optimal results, ensure the input is a valid URL or a concise search phrase." } }, "required": [ "link", "query" ] }, "browseResponseBody": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the crawled page." }, "links": { "type": "array", "items": { "type": "string" }, "description": "List of internal links from the crawled page." }, "metas": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the meta tag." }, "content": { "type": "string", "description": "Content of the meta tag." } }, "required": [ "name", "content" ] }, "description": "List of meta tags from the crawled page." }, "content": { "type": "string", "description": "Text content of the crawled page." }, "responseInstructions": { "type": "array", "items": { "type": "string" }, "description": "Instructions related to the response." } }, "required": [ "content", "responseInstructions" ] }, "browsingFailedBody": { "type": "object", "properties": { "success": { "type": "boolean", "description": "Indicates if the request was successful." }, "message": { "type": "string", "description": "Error message in case of failure." } } } } } }