ScriptGPT

ScriptGPT · GPT-Aktionen

StackExchange Search

A GET-request based search operation for any of several StackExchange boards. This is useful as these boards contain vast amounts of useful information to both common and uncommon queries.

  • GET /2.3/searchsearchStack

    Search one of several StackExchange boards based on the provided parameters.

  • GET /2.3/questions/{id}/answerssearchStackAnswers

    Bring up all answers for a given question ID.

  • GET /2.3/answers/{ids}getStackAnswers

    Bring up relevant data for one of more answers based on the provided IDs.

Ursprüngliches API-Schema
{
  "info": {
    "title": "StackExchange Search",
    "description": "A GET-request based search operation for any of several StackExchange boards. This is useful as these boards contain vast amounts of useful information to both common and uncommon queries.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.stackexchange.com"
    }
  ],
  "paths": {
    "/2.3/search": {
      "get": {
        "description": "Search one of several StackExchange boards based on the provided parameters.",
        "operationId": "searchStack",
        "parameters": [
          {
            "name": "intitle",
            "in": "query",
            "description": "The query to use for searching.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "How to sort the results returned for the query.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "activity",
                "votes",
                "creation",
                "relevance"
              ]
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "The order in which to sort the results.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "site",
            "in": "query",
            "description": "The StackExchange site to search.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "stackoverflow",
                "serverfault",
                "superuser",
                "askubuntu",
                "unix",
                "cs",
                "softwareengineering",
                "codegolf",
                "codereview",
                "cstheory",
                "security",
                "cryptography",
                "reverseengineering",
                "datascience",
                "devops",
                "ux",
                "dba",
                "gis",
                "webmasters",
                "arduino",
                "raspberrypi",
                "networkengineering",
                "iot",
                "tor",
                "sqa",
                "mathoverflow",
                "math",
                "mathematica",
                "dsp",
                "gamedev",
                "robotics",
                "genai",
                "computergraphics"
              ]
            }
          },
          {
            "name": "tagged",
            "in": "query",
            "description": "A semicolon-separated list of tags to search for.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nottagged",
            "in": "query",
            "description": "A semicolon-separated list of tags to exclude from the search.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accepted",
            "in": "query",
            "description": "Whether or not to search for only accepted answers.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "description": "The number of results to return per page.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/2.3/questions/{id}/answers": {
      "get": {
        "description": "Bring up all answers for a given question ID.",
        "operationId": "searchStackAnswers",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the question to query.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "site",
            "in": "query",
            "description": "The StackExchange site to query from.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "stackoverflow",
                "serverfault",
                "superuser",
                "askubuntu",
                "unix",
                "cs",
                "softwareengineering",
                "codegolf",
                "codereview",
                "cstheory",
                "security",
                "cryptography",
                "reverseengineering",
                "datascience",
                "devops",
                "ux",
                "dba",
                "gis",
                "webmasters",
                "arduino",
                "raspberrypi",
                "networkengineering",
                "iot",
                "tor",
                "sqa",
                "mathoverflow",
                "math",
                "mathematica",
                "dsp",
                "gamedev",
                "robotics",
                "genai",
                "computergraphics"
              ]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "This is required in order to actually get the body of the answer.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "!nNPvSNdWme"
              ]
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "The order in which to sort the results.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "How to sort the results returned for the query.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "activity",
                "votes",
                "creation"
              ]
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "description": "The number of results to return per page.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The page number to return given the page size.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/2.3/answers/{ids}": {
      "get": {
        "description": "Bring up relevant data for one of more answers based on the provided IDs.",
        "operationId": "getStackAnswers",
        "parameters": [
          {
            "name": "ids",
            "in": "path",
            "description": "A semicolon-separated list of answer IDs to query.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "The order in which to sort the results.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "How to sort the results returned for the query.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "activity",
                "votes",
                "creation"
              ]
            }
          },
          {
            "name": "site",
            "in": "query",
            "description": "The StackExchange site to query from.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "stackoverflow",
                "serverfault",
                "superuser",
                "askubuntu",
                "unix",
                "cs",
                "softwareengineering",
                "codegolf",
                "codereview",
                "cstheory",
                "security",
                "cryptography",
                "reverseengineering",
                "datascience",
                "devops",
                "ux",
                "dba",
                "gis",
                "webmasters",
                "arduino",
                "raspberrypi",
                "networkengineering",
                "iot",
                "tor",
                "sqa",
                "mathoverflow",
                "math",
                "mathematica",
                "dsp",
                "gamedev",
                "robotics",
                "genai",
                "computergraphics"
              ]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "This is required in order to actually get the body of the answer.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "!nNPvSNdWme"
              ]
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

DevDocs Reader

A GET-request based search operation for DevDocs. This is useful, as DevDocs contains a myriad of various documentations for different things. If using this, ask the user about the parameters beforehand. If doing as an intermediary research step, ask the user to go find the URL.

  • GET /{doc}/{topic}.htmlFetch Documentation from DevDocs

    Searches for a specific topic and path in DevDocs based on the provided documentation name and topic. This endpoint simulates user navigation on the DevDocs website to retrieve documentation content.

Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "DevDocs Reader",
    "description": "A GET-request based search operation for DevDocs. This is useful, as DevDocs contains a myriad of various documentations for different things. If using this, ask the user about the parameters beforehand. If doing as an intermediary research step, ask the user to go find the URL.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://documents.devdocs.io",
      "description": "DevDocs Documentation Hub"
    }
  ],
  "paths": {
    "/{doc}/{topic}.html": {
      "get": {
        "operationId": "readDevDocs",
        "summary": "Fetch Documentation from DevDocs",
        "description": "Searches for a specific topic and path in DevDocs based on the provided documentation name and topic. This endpoint simulates user navigation on the DevDocs website to retrieve documentation content.",
        "parameters": [
          {
            "name": "doc",
            "in": "path",
            "description": "The name of the documentation, such as \"vuex~4\" or \"css\". The exact value should be identified by the user.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "javascript"
          },
          {
            "name": "topic",
            "in": "path",
            "description": "The path of the section/topic, such as \"guide/actions\" for Vuex or \"display-box\" for CSS.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "strings"
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the documentation content."
          },
          "400": {
            "description": "Bad request, often due to missing or invalid parameters."
          },
          "404": {
            "description": "The specified documentation or topic was not found."
          },
          "429": {
            "description": "Too many requests - rate limiting applied."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

Github File Lister

Acts like the 'ls' command and can list the contents of directories on Github repos. Can not be used to read file contents directly, as it will return base64.

  • GET /repos/{owner}/{repo}/contents/{path}listGithubFiles

    Gets the contents (files) of a specific repo/directory. The 'download_url' property can be used to get the path for the file reader. Make sure to use the 'Github File Reader' action when trying to read contents (if its available).

Ursprüngliches API-Schema
{
  "info": {
    "title": "Github File Lister",
    "description": "Acts like the 'ls' command and can list the contents of directories on Github repos. Can not be used to read file contents directly, as it will return base64.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.github.com"
    }
  ],
  "paths": {
    "/repos/{owner}/{repo}/contents/{path}": {
      "get": {
        "description": "Gets the contents (files) of a specific repo/directory. The 'download_url' property can be used to get the path for the file reader. Make sure to use the 'Github File Reader' action when trying to read contents (if its available).",
        "operationId": "listGithubFiles",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "description": "The owner of the repository (username).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "description": "The name of the repository itself.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "description": "The path to the file or folder (leave this blank to just get the root of the repo). This is case-sensetive.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

Github File Reader

Request the raw contents of a file from a Github repository given its path.

  • GET /{owner}/{repo}/{branch}/{filepath}readGithubFile

    Returns the raw contents of a file from a Github repository given its path. The relevant details can be queried from the 'Github File Lister' action if it is available.

Ursprüngliches API-Schema
{
  "info": {
    "title": "Github File Reader",
    "description": "Request the raw contents of a file from a Github repository given its path.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://raw.githubusercontent.com"
    }
  ],
  "paths": {
    "/{owner}/{repo}/{branch}/{filepath}": {
      "get": {
        "description": "Returns the raw contents of a file from a Github repository given its path. The relevant details can be queried from the 'Github File Lister' action if it is available.",
        "operationId": "readGithubFile",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "description": "The owner of the repository (username).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "description": "The name of the repository.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branch",
            "in": "path",
            "description": "The branch of the repository (this is 'main' by default).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filepath",
            "in": "path",
            "description": "The path to the file.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

Semantic Scholar Search

A GET-request based search operation for papers on Semantic Scholar, which uses a vector space model to find relevant papers based on a query (it can be very helpful for natural language searches).

  • GET /graph/v1/paper/searchsearchSemanticScholar

    Relevancy-based search for papers on Semantic Scholar.

Ursprüngliches API-Schema
{
  "info": {
    "title": "Semantic Scholar Search",
    "description": "A GET-request based search operation for papers on Semantic Scholar, which uses a vector space model to find relevant papers based on a query (it can be very helpful for natural language searches).",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.semanticscholar.org"
    }
  ],
  "paths": {
    "/graph/v1/paper/search": {
      "get": {
        "description": "Relevancy-based search for papers on Semantic Scholar.",
        "operationId": "searchSemanticScholar",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "The search query itself, this can be any natural language query.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of papers to return. Defaults to 10, maximum is 100.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "The fields to return in the response. Use the pre-specified value for this (don't change it).",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "url,abstract,publicationTypes,tldr,openAccessPdf"
              ]
            }
          },
          {
            "name": "fieldsOfStudy",
            "in": "query",
            "description": "The fields of study to filter the results by. These are comma-separated values, e.g. \"Computer Science,Medicine\".",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "Computer Science",
                "Medicine",
                "Chemistry",
                "Biology",
                "Materials Science",
                "Physics",
                "Geology",
                "Psychology",
                "Art",
                "History",
                "Geography",
                "Sociology",
                "Business",
                "Political Science",
                "Economics",
                "Philosophy",
                "Mathematics",
                "Engineering",
                "Environmental Science",
                "Agricultural and Food Sciences",
                "Education",
                "Law",
                "Linguistics"
              ]
            }
          },
          {
            "name": "publicationDateOrYear",
            "in": "query",
            "description": "The publication date or year to filter the results by (inclusive). Accepts the format <startDate>:<endDate> (YYYY-MM-DD), e.g. 2016-03:2020-06 (as early as March, 2016 or as late as June, 2020).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "publicationTypes",
            "in": "query",
            "description": "The publication types to filter the results by. These are comma-separated values, e.g. \"JournalArticle,CaseReport\".",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "Review",
                "JournalArticle",
                "CaseReport",
                "ClinicalTrial",
                "Dataset",
                "Editorial",
                "LettersAndComments",
                "MetaAnalysis",
                "News",
                "Study",
                "Book",
                "BookSection"
              ]
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}