export const toolbox = { kind: 'categoryToolbox', contents: [ { 'kind': 'search', 'name': 'Search', 'contents': [], }, { 'kind': 'sep', }, { kind: 'category', name: 'AI', categorystyle: 'logic_category', contents: [ { kind: 'block', type: 'llm_call', }, ] }, { kind: 'category', name: 'Functions', categorystyle: 'logic_category', contents: [ { kind: 'block', type: 'func_def', }, { kind: 'block', type: 'func_call', }, ] }, { kind: 'category', name: 'JSON and API', categorystyle: 'logic_category', contents: [ { kind: 'block', type: 'call_api', inputs: { URL: { shadow: { type: 'text', fields: { text: "10", }, }, }, }, }, { kind: 'block', type: 'in_json', inputs: { NAME: { shadow: { type: 'text', fields: { text: "10", }, }, }, }, }, { kind: 'block', type: 'make_json', }, ] }, { 'kind': 'sep', }, { kind: 'category', name: 'Logic', categorystyle: 'logic_category', contents: [ { kind: 'block', type: 'controls_if', }, { kind: 'block', type: 'logic_compare', }, { kind: 'block', type: 'logic_operation', }, { kind: 'block', type: 'logic_negate', }, { kind: 'block', type: 'logic_boolean', }, { kind: 'block', type: 'logic_null', }, { kind: 'block', type: 'cast_as', }, ], }, { kind: 'category', name: 'Loops', categorystyle: 'loop_category', contents: [ { kind: 'block', type: 'controls_repeat_ext', inputs: { TIMES: { shadow: { type: 'math_number', fields: { NUM: 10, }, }, }, }, }, { kind: 'block', type: 'controls_whileUntil', }, { kind: 'block', type: 'controls_for', inputs: { FROM: { shadow: { type: 'math_number', fields: { NUM: 1, }, }, }, TO: { shadow: { type: 'math_number', fields: { NUM: 10, }, }, }, BY: { shadow: { type: 'math_number', fields: { NUM: 1, }, }, }, }, }, { kind: 'block', type: 'controls_forEach', }, { kind: 'block', type: 'controls_flow_statements', }, ], }, { kind: 'category', name: 'Math', categorystyle: 'math_category', contents: [ { kind: 'block', type: 'math_number', fields: { NUM: 123, }, }, { kind: 'block', type: 'math_arithmetic', inputs: { A: { shadow: { type: 'math_number', fields: { NUM: 1, }, }, }, B: { shadow: { type: 'math_number', fields: { NUM: 1, }, }, }, }, }, { kind: 'block', type: 'math_single', inputs: { NUM: { shadow: { type: 'math_number', fields: { NUM: 9, }, }, }, }, }, { kind: 'block', type: 'math_trig', inputs: { NUM: { shadow: { type: 'math_number', fields: { NUM: 45, }, }, }, }, }, { kind: 'block', type: 'math_number_property', inputs: { NUMBER_TO_CHECK: { shadow: { type: 'math_number', fields: { NUM: 0, }, }, }, }, }, { kind: 'block', type: 'math_round', fields: { OP: 'ROUND', }, inputs: { NUM: { shadow: { type: 'math_number', fields: { NUM: 3.1, }, }, }, }, }, { kind: 'block', type: 'math_modulo', inputs: { DIVIDEND: { shadow: { type: 'math_number', fields: { NUM: 64, }, }, }, DIVISOR: { shadow: { type: 'math_number', fields: { NUM: 10, }, }, }, }, }, { kind: 'block', type: 'math_constrain', inputs: { VALUE: { shadow: { type: 'math_number', fields: { NUM: 50, }, }, }, LOW: { shadow: { type: 'math_number', fields: { NUM: 1, }, }, }, HIGH: { shadow: { type: 'math_number', fields: { NUM: 100, }, }, }, }, }, { kind: 'block', type: 'math_random_int', inputs: { FROM: { shadow: { type: 'math_number', fields: { NUM: 1, }, }, }, TO: { shadow: { type: 'math_number', fields: { NUM: 100, }, }, }, }, }, ], }, { kind: 'category', name: 'Text', categorystyle: 'text_category', contents: [ { kind: 'block', type: 'text', }, { kind: 'block', type: 'text_join', }, { kind: 'block', type: 'text_append', inputs: { TEXT: { shadow: { type: 'text', fields: { TEXT: '', }, }, }, }, }, { kind: 'block', type: 'text_length', inputs: { VALUE: { shadow: { type: 'text', fields: { TEXT: 'abc', }, }, }, }, }, { kind: 'block', type: 'text_isEmpty', inputs: { VALUE: { shadow: { type: 'text', fields: { TEXT: '', }, }, }, }, }, { kind: 'block', type: 'text_getSubstring', }, { kind: 'block', type: 'text_changeCase', inputs: { TEXT: { shadow: { type: 'text', fields: { TEXT: 'abc', }, }, }, }, }, { kind: 'block', type: 'text_trim', inputs: { TEXT: { shadow: { type: 'text', fields: { TEXT: 'abc', }, }, }, }, }, { kind: 'block', type: 'text_count', inputs: { SUB: { shadow: { type: 'text', }, }, TEXT: { shadow: { type: 'text', }, }, }, }, { kind: 'block', type: 'text_replace', inputs: { FROM: { shadow: { type: 'text', }, }, TO: { shadow: { type: 'text', }, }, TEXT: { shadow: { type: 'text', }, }, }, }, { kind: 'block', type: 'text_reverse', inputs: { TEXT: { shadow: { type: 'text', }, }, }, }, ], }, { kind: 'category', name: 'Lists', categorystyle: 'list_category', contents: [ { kind: 'block', type: 'lists_create_with', }, { kind: 'block', type: 'lists_length', }, { kind: 'block', type: 'lists_isEmpty', }, { kind: 'block', type: 'lists_indexOf', }, { kind: 'block', type: 'lists_getIndex', }, { kind: 'block', type: 'lists_setIndex', }, { kind: 'block', type: 'lists_getSublist', }, { kind: 'block', type: 'lists_sort', }, { kind: 'block', type: 'lists_reverse', }, { kind: 'block', type: 'lists_contains', }, ], }, { kind: 'sep', }, { kind: 'category', name: 'Variables', categorystyle: 'variable_category', custom: 'VARIABLE', }, ], };