{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shapelessai/json-schema/shapelessai-tool-result-schema.json",
  "title": "ToolResult",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shapelessai-tools-api-openapi.yml#/components/schemas/ToolResult",
  "type": "object",
  "properties": {
    "tool": {
      "type": "string"
    },
    "output": {
      "description": "The tool's own result; media it made is named by mediaKey."
    },
    "media": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "description": "Every media key the output names, with the URL that streams it (read scope). Put a key on a post's mediaKeys."
    },
    "chargedUsd": {
      "type": "number"
    }
  },
  "required": [
    "tool",
    "output",
    "media",
    "chargedUsd"
  ]
}