Skip to content

AmazonBedrockTool

8 exports Added in v1.0.0 Source

Other

Signature

declare const AnthropicBash_20241022: <Mode extends Tool.FailureMode | undefined = undefined>(
  args: {} & {
    readonly failureMode?: Mode;
  },
) => Tool.ProviderDefined<
  "AnthropicBash",
  {
    readonly args: Schema.Struct<{}>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      command: typeof Schema.NonEmptyString;
      restart: Schema.optional<typeof Schema.Boolean>;
    }>;
    readonly success: typeof Schema.String;
  },
  true
>;

Signature

declare const AnthropicBash_20250124: <Mode extends Tool.FailureMode | undefined = undefined>(
  args: {} & {
    readonly failureMode?: Mode;
  },
) => Tool.ProviderDefined<
  "AnthropicBash",
  {
    readonly args: Schema.Struct<{}>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      command: typeof Schema.NonEmptyString;
      restart: Schema.optional<typeof Schema.Boolean>;
    }>;
    readonly success: typeof Schema.String;
  },
  true
>;

Signature

declare const AnthropicComputerUse_20241022: <
  Mode extends Tool.FailureMode | undefined = undefined,
>(args: {
  readonly cache_control?: {
    readonly ttl?: "5m" | "1h" | null;
    readonly type: "ephemeral";
  } | null;
  readonly display_height_px: number;
  readonly display_number?: number | null;
  readonly display_width_px: number;
  readonly failureMode?: Mode;
}) => Tool.ProviderDefined<
  "AnthropicComputerUse",
  {
    readonly args: Schema.Struct<{
      readonly cache_control: Schema.optionalWith<
        typeof Generated.BetaCacheControlEphemeral,
        {
          nullable: true;
        }
      >;
      readonly display_height_px: Schema.filter<typeof Schema.Int>;
      readonly display_number: Schema.optionalWith<
        Schema.filter<typeof Schema.Int>,
        {
          nullable: true;
        }
      >;
      readonly display_width_px: Schema.filter<typeof Schema.Int>;
    }>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      action: Schema.Literal<["screenshot", "left_click", "type", "key", "mouse_move"]>;
      coordinate: Schema.optional<Schema.Tuple2<typeof Schema.Number, typeof Schema.Number>>;
      text: Schema.optional<typeof Schema.String>;
    }>;
    readonly success: typeof Schema.String;
  },
  true
>;

Signature

declare const AnthropicComputerUse_20250124: <
  Mode extends Tool.FailureMode | undefined = undefined,
>(args: {
  readonly cache_control?: {
    readonly ttl?: "5m" | "1h" | null;
    readonly type: "ephemeral";
  } | null;
  readonly display_height_px: number;
  readonly display_number?: number | null;
  readonly display_width_px: number;
  readonly failureMode?: Mode;
}) => Tool.ProviderDefined<
  "AnthropicComputerUse",
  {
    readonly args: Schema.Struct<{
      readonly cache_control: Schema.optionalWith<
        typeof Generated.BetaCacheControlEphemeral,
        {
          nullable: true;
        }
      >;
      readonly display_height_px: Schema.filter<typeof Schema.Int>;
      readonly display_number: Schema.optionalWith<
        Schema.filter<typeof Schema.Int>,
        {
          nullable: true;
        }
      >;
      readonly display_width_px: Schema.filter<typeof Schema.Int>;
    }>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      action: Schema.Literal<
        [
          "screenshot",
          "left_click",
          "type",
          "key",
          "mouse_move",
          "scroll",
          "left_click_drag",
          "middle_click",
          "right_click",
          "double_click",
          "triple_click",
          "left_mouse_down",
          "left_mouse_up",
          "hold_key",
          "wait",
        ]
      >;
      coordinate: Schema.optional<Schema.Tuple2<typeof Schema.Number, typeof Schema.Number>>;
      duration: Schema.optional<typeof Schema.Number>;
      scroll_amount: Schema.optional<typeof Schema.Number>;
      scroll_direction: Schema.optional<Schema.Literal<["up", "down", "left", "right"]>>;
      start_coordinate: Schema.optional<Schema.Tuple2<typeof Schema.Number, typeof Schema.Number>>;
      text: Schema.optional<typeof Schema.String>;
    }>;
    readonly success: typeof Schema.String;
  },
  true
>;

Signature

declare const AnthropicTextEditor_20241022: <
  Mode extends Tool.FailureMode | undefined = undefined,
>(args: {
  readonly failureMode?: Mode;
}) => Tool.ProviderDefined<
  "AnthropicTextEditor",
  {
    readonly args: Schema.Struct<{}>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      command: Schema.Literal<["view", "create", "str_replace", "insert", "undo_edit"]>;
      file_text: Schema.optional<typeof Schema.String>;
      insert_line: Schema.optional<typeof Schema.Number>;
      new_str: Schema.optional<typeof Schema.String>;
      old_str: Schema.optional<typeof Schema.String>;
      path: typeof Schema.String;
      view_range: Schema.optional<Schema.Array$<typeof Schema.Number>>;
    }>;
    readonly success: typeof Schema.Void;
  },
  true
>;

Signature

declare const AnthropicTextEditor_20250124: <
  Mode extends Tool.FailureMode | undefined = undefined,
>(args: {
  readonly failureMode?: Mode;
}) => Tool.ProviderDefined<
  "AnthropicTextEditor",
  {
    readonly args: Schema.Struct<{}>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      command: Schema.Literal<["view", "create", "str_replace", "insert", "undo_edit"]>;
      file_text: Schema.optional<typeof Schema.String>;
      insert_line: Schema.optional<typeof Schema.Number>;
      new_str: Schema.optional<typeof Schema.String>;
      old_str: Schema.optional<typeof Schema.String>;
      path: typeof Schema.String;
      view_range: Schema.optional<Schema.Array$<typeof Schema.Number>>;
    }>;
    readonly success: typeof Schema.Void;
  },
  true
>;

Signature

declare const AnthropicTextEditor_20250429: <
  Mode extends Tool.FailureMode | undefined = undefined,
>(args: {
  readonly failureMode?: Mode;
}) => Tool.ProviderDefined<
  "AnthropicTextEditor",
  {
    readonly args: Schema.Struct<{}>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      command: Schema.Literal<["view", "create", "str_replace", "insert"]>;
      file_text: Schema.optional<typeof Schema.String>;
      insert_line: Schema.optional<typeof Schema.Number>;
      new_str: Schema.optional<typeof Schema.String>;
      old_str: Schema.optional<typeof Schema.String>;
      path: typeof Schema.String;
      view_range: Schema.optional<Schema.Array$<typeof Schema.Number>>;
    }>;
    readonly success: typeof Schema.Void;
  },
  true
>;

Signature

declare const AnthropicTextEditor_20250728: <
  Mode extends Tool.FailureMode | undefined = undefined,
>(args: {
  readonly failureMode?: Mode;
}) => Tool.ProviderDefined<
  "AnthropicTextEditor",
  {
    readonly args: Schema.Struct<{}>;
    readonly failure: typeof Schema.Never;
    readonly failureMode: Mode extends undefined ? "error" : Mode;
    readonly parameters: Schema.Struct<{
      command: Schema.Literal<["view", "create", "str_replace", "insert"]>;
      file_text: Schema.optional<typeof Schema.String>;
      insert_line: Schema.optional<typeof Schema.Number>;
      new_str: Schema.optional<typeof Schema.String>;
      old_str: Schema.optional<typeof Schema.String>;
      path: typeof Schema.String;
      view_range: Schema.optional<Schema.Array$<typeof Schema.Number>>;
    }>;
    readonly success: typeof Schema.Void;
  },
  true
>;