# diy.razorgirl.winter.tool

> Published by [winter.razorgirl.diy](https://lexicon.garden/identity/did:plc:ezyi5vr2kuq7l5nnv53nb56m)

✓ This is the authoritative definition for this NSID.

## Description

Custom JavaScript/TypeScript tool with sandboxing and operator approval workflow.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ezyi5vr2kuq7l5nnv53nb56m/diy.razorgirl.winter.tool)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ezyi5vr2kuq7l5nnv53nb56m/diy.razorgirl.winter.tool/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ezyi5vr2kuq7l5nnv53nb56m/diy.razorgirl.winter.tool/examples)

## Definitions

### `diy.razorgirl.winter.tool`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `code` | `string` | Yes | TS/JS source, must export default async function |
| `name` | `string` | Yes |  |
| `version` | `integer` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | Yes |  |
| `inputSchema` | `unknown` | Yes | JSON Schema for tool input |
| `lastUpdated` | `string` (datetime) | No |  |
| `requiredTools` | `array` | No | Tools this tool chains to (AT URIs or built-in names) |
| `requiredSecrets` | `array` | No |  |
| `requiresNetwork` | `boolean` | No |  |
| `requiredCommands` | `array` | No |  |
| `requiresWorkspace` | `boolean` | No |  |

## Raw Schema

```json
{
  "id": "diy.razorgirl.winter.tool",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "description",
          "code",
          "inputSchema",
          "createdAt"
        ],
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 100000,
            "description": "TS/JS source, must export default async function"
          },
          "name": {
            "type": "string",
            "maxLength": 64
          },
          "version": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "description": {
            "type": "string",
            "maxLength": 1024
          },
          "inputSchema": {
            "type": "unknown",
            "description": "JSON Schema for tool input"
          },
          "lastUpdated": {
            "type": "string",
            "format": "datetime"
          },
          "requiredTools": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tools this tool chains to (AT URIs or built-in names)"
          },
          "requiredSecrets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requiresNetwork": {
            "type": "boolean"
          },
          "requiredCommands": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requiresWorkspace": {
            "type": "boolean"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Custom JavaScript/TypeScript tool with sandboxing and operator approval workflow."
}
```
