at.functions.run

hamburgerz.bsky.social

Documentation

Invoke a registered AT Function

main procedure

Invoke a registered AT Function

Input

Encodingapplication/json
function string Required

at:// URI of the at.functions.metadata record

input unknown Required

JSON input passed to the function

Output

Encodingapplication/json
durationMs integer Optional

Wall-clock execution time in milliseconds

error string Optional

Error message if execution failed

functionCid string Optional

CID of the function record

ok boolean Required

Whether execution succeeded

output unknown Optional

JSON output from the function

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "function",
        "input"
      ],
      "properties": {
        "input": {
          "type": "unknown",
          "description": "JSON input passed to the function"
        },
        "function": {
          "type": "string",
          "description": "at:// URI of the at.functions.metadata record"
        }
      }
    },
    "encoding": "application/json"
  },
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "ok"
      ],
      "properties": {
        "ok": {
          "type": "boolean",
          "description": "Whether execution succeeded"
        },
        "error": {
          "type": "string",
          "description": "Error message if execution failed"
        },
        "output": {
          "type": "unknown",
          "description": "JSON output from the function"
        },
        "durationMs": {
          "type": "integer",
          "description": "Wall-clock execution time in milliseconds"
        },
        "functionCid": {
          "type": "string",
          "description": "CID of the function record"
        }
      }
    },
    "encoding": "application/json"
  },
  "description": "Invoke a registered AT Function"
}

Lexicon Garden

@