1 line
9.8 KiB
JSON
1 line
9.8 KiB
JSON
{"model":"claude-opus-4.6","max_tokens":200000,"temperature":0.7,"messages":[{"role":"system","content":"Skill execution context:\n- You are executing a specific skill on demand.\n- Follow the skill instructions below precisely.\n- Return a concise, actionable result.\n\nSkill d_tag: conways-game\nSkill source: external\n\nSkill instructions:\n{\"description\":\"Conways game of life.\",\"context_mode\":\"full\",\"llm\":\"claude-opus-4.6\",\"tools\":false,\"max_tokens\":4000,\"temperature\":0,\"seed\":0,\"template\":\"system:\\nYou are a web page generator. You must respond to ALL requests with a complete, valid HTML page. Your response must be ONLY the HTML — no markdown, no explanation, no code fences. The page should be self-contained with inline CSS and JavaScript as needed.\\n\\nuser:\\nImplement Conway's Game of Life, on a grid that completely covers the browser window. Make each cell 24 X 24 pixels. Keypress adds to grid. Run continuously.\\n\\nOnly use the colors:Black, White, and Red.\\n\\nMake the background white, the grid barely visible, and the fills red.\\n\\nNo text on the screen.\"}"},{"role":"user","content":"return ok"}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","function":{"name":"nostr_relay_status","description":"Get connection status and statistics for all relays","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"nostr_nip05_lookup","description":"Look up or verify a NIP-05 identifier (user@domain)","parameters":{"type":"object","properties":{"identifier":{"type":"string","description":"NIP-05 identifier in the form user@domain"},"pubkey":{"type":"string","description":"Optional expected pubkey to verify against lookup result"}},"required":["identifier"]}}},{"type":"function","function":{"name":"nostr_encode","description":"Encode a Nostr entity into nostr: URI (npub, note, nprofile, nevent, naddr)","parameters":{"type":"object","properties":{"type":{"type":"string","description":"Encoding target: npub, note, nprofile, nevent, or naddr"},"hex":{"type":"string","description":"Hex pubkey or event id to encode"},"relays":{"type":"array","description":"Optional relay URLs included in nprofile/nevent/naddr encodings","items":{"type":"string"}},"kind":{"type":"integer","description":"Required for naddr: replaceable event kind"},"identifier":{"type":"string","description":"Required for naddr: replaceable event identifier (d tag)"}},"required":["type","hex"]}}},{"type":"function","function":{"name":"nostr_decode","description":"Decode a Nostr bech32/nostr: URI into components","parameters":{"type":"object","properties":{"uri":{"type":"string","description":"nostr: URI or bech32 value to decode"}},"required":["uri"]}}},{"type":"function","function":{"name":"nostr_dm_send","description":"Send a NIP-04 encrypted DM","parameters":{"type":"object","properties":{"recipient_pubkey":{"type":"string","description":"Recipient pubkey in hex"},"message":{"type":"string","description":"Plaintext message to encrypt and send"}},"required":["recipient_pubkey","message"]}}},{"type":"function","function":{"name":"nostr_relay_info","description":"Fetch NIP-11 relay information document","parameters":{"type":"object","properties":{"relay_url":{"type":"string","description":"Relay websocket URL (ws:// or wss://)"}},"required":["relay_url"]}}},{"type":"function","function":{"name":"nostr_dm_send_nip17","description":"Send a private DM using NIP-17 gift wrap protocol","parameters":{"type":"object","properties":{"recipient_pubkey":{"type":"string","description":"Recipient pubkey in hex"},"message":{"type":"string","description":"Message body to send in gift-wrap DM"},"subject":{"type":"string","description":"Optional subject label for the message"}},"required":["recipient_pubkey","message"]}}},{"type":"function","function":{"name":"nostr_list_manage","description":"Add/remove tag tuples in replaceable list events (NIP-51 style)","parameters":{"type":"object","properties":{"list_kind":{"type":"integer","description":"Replaceable list kind to edit (for example 10000 mute, 10001 pin, 10002 relay list)"},"action":{"type":"string","description":"Operation to perform: add or remove"},"items":{"type":"array","description":"Tag tuples to add/remove, e.g. [[\"p\",\"<pubkey>\"],[\"e\",\"<event_id>\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["list_kind","action","items"]}}},{"type":"function","function":{"name":"agent_version","description":"Return current Didactyl version and metadata from build macros","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"skill_list","description":"List available skills discovered online (agent + admin), with adoption status and optional filters","parameters":{"type":"object","properties":{"scope":{"type":"string"},"adopted":{"type":"boolean"}}}}},{"type":"function","function":{"name":"skill_get","description":"Get full skill JSON by d tag from local cache; JSON: {\"d\":\"identity_and_rules\"} (slash shorthand also works: /skill_get identity_and_rules)","parameters":{"type":"object","properties":{"d":{"type":"string","description":"Skill d tag (preferred JSON key)"},"input":{"type":"string","description":"Slash shorthand fallback key when args are passed as plain text"}},"required":["d"]}}},{"type":"function","function":{"name":"skill_view","description":"Compatibility alias for skill_get; JSON: {\"d\":\"identity_and_rules\"}","parameters":{"type":"object","properties":{"d":{"type":"string"},"input":{"type":"string"}},"required":["d"]}}},{"type":"function","function":{"name":"skill_search","description":"Search public skills by query/author and optionally rank by adoption popularity","parameters":{"type":"object","properties":{"query":{"type":"string"},"pubkey":{"type":"string"},"popular":{"type":"boolean"}}}}},{"type":"function","function":{"name":"skill_run","description":"Execute a skill one-shot in an isolated context with optional sandboxing. Use d_tag for own skills or pubkey+d_tag for external skills.","parameters":{"type":"object","properties":{"d_tag":{"type":"string","description":"Skill d tag identifier"},"d":{"type":"string","description":"Compatibility alias for d_tag"},"pubkey":{"type":"string","description":"Optional author pubkey for external skills"},"args":{"type":"string","description":"Arguments/context to pass to the skill"},"input":{"type":"string","description":"Slash shorthand fallback for args"},"sandbox":{"type":"boolean","description":"Override sandbox behavior (default on for external skills)"}},"required":["d_tag"]}}},{"type":"function","function":{"name":"skill_load","description":"Load a skill's instructions into the current conversation context.","parameters":{"type":"object","properties":{"d_tag":{"type":"string","description":"Skill d tag identifier"},"d":{"type":"string","description":"Compatibility alias for d_tag"},"pubkey":{"type":"string","description":"Optional author pubkey for external skills"}},"required":["d_tag"]}}},{"type":"function","function":{"name":"trigger_list","description":"List active triggered skills and their runtime status","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"tool_list","description":"List available tools with name, description, and JSON parameter schema","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"nostr_pubkey","description":"Return this agent's pubkey in hex format","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"nostr_npub","description":"Return this agent's pubkey encoded as npub bech32","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"admin_identity","description":"Build admin identity context block from cached runtime metadata","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"agent_identity","description":"Build agent identity context block with pubkey and npub","parameters":{"type":"object","properties":{}}}},{"type":"function","function":{"name":"memory_recall","description":"Recall encrypted agent memory (kind 30078, d=memory)","parameters":{"type":"object","properties":{}}}}],"tool_choice":"auto"} |