{"at":"2026-11-23T00:33:27.408Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:33:28.366Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"harald","version":"0.2.2"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"harald helps you work out the bluetooth le or classic (rfcomm) protocol of a gadget the user owns: scan and connect over le, talk to the rfcomm channels of paired classic devices, decode phone captures, compare payloads, test candidate keys, scan the vendor's android app, and keep notes per device. write_char and classic_send are refused until the human runs `harald arm <address>` in their own terminal; no tool can arm. a tool that fails returns {\"error\": ..., \"hint\": ...}: act on the hint.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T00:33:28.367Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:33:28.368Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"harald","version":"0.2.2"}},"cacheScope":"private","resultType":"complete","tools":[{"description":"scan for bluetooth le devices for `timeout` seconds, strongest signal first.\n\nmanufacturer_data maps each company id (as 0x-hex) to its payload hex.","inputSchema":{"properties":{"timeout":{"default":5.0,"title":"Timeout","type":"number"}},"title":"scanArguments","type":"object"},"name":"scan","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"scanOutput","type":"object"}},{"description":"connect to a device and list its gatt services and their characteristics.\n\nuse the characteristic uuids listed here with read_char, write_char and subscribe.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"}},"required":["address"],"title":"connectArguments","type":"object"},"name":"connect","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"connectOutput","type":"object"}},{"description":"read a characteristic once; returns its value as hex.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"char_uuid":{"title":"Char Uuid","type":"string"}},"required":["address","char_uuid"],"title":"read_charArguments","type":"object"},"name":"read_char","outputSchema":{"properties":{"result":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"read_charOutput","type":"object"}},{"description":"write hex bytes to a characteristic; returns the writes left.\n\nrefused unless the human armed this device by running `harald arm <address>`\nin their own terminal. each write spends one from that budget, and\nfirmware-update services stay blocked. by default it writes without response\nwhen the characteristic allows that, and with response otherwise.\nresponse=true waits for the device to acknowledge the write; false does not.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"char_uuid":{"title":"Char Uuid","type":"string"},"data_hex":{"title":"Data Hex","type":"string"},"response":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Response"}},"required":["address","char_uuid","data_hex"],"title":"write_charArguments","type":"object"},"name":"write_char","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"write_charOutput","type":"object"}},{"description":"collect notifications from a characteristic for `seconds`.\n\nreturns one entry per notification: seconds since the start and the value as hex.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"char_uuid":{"title":"Char Uuid","type":"string"},"seconds":{"title":"Seconds","type":"number"}},"required":["address","char_uuid","seconds"],"title":"subscribeArguments","type":"object"},"name":"subscribe","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"subscribeOutput","type":"object"}},{"description":"show the att and rfcomm timeline of a phone capture (.pklg or btsnoop log).\n\none line per event with time, acl connection, direction, op and value hex. att\nevents show their handle and uuid; rfcomm events (rfcomm data, rfcomm_open and\nrfcomm_close) show their server channel, e.g. ch=9. any warnings come first and\na `showing a–b of n events` footer comes last. a capture can hold several\nconnections, each with its own handles. page with limit and offset. handle (an\ninteger, e.g. 18 for h=0x0012) keeps only att events on that handle, channel\n(e.g. 9) only rfcomm events on that channel, conn (e.g. 64 for c=0x0040) only\nevents on that connection, and offset then counts those filtered events. for a\nbluetooth classic gadget, capture its android app in a btsnoop log: an iphone\napp reaches classic gadgets only through apple iap2, which harald shows as\nrfcomm data but can't unwrap yet. relative paths resolve against the server's\nworking directory.","inputSchema":{"properties":{"channel":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Channel"},"conn":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Conn"},"handle":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Handle"},"limit":{"default":200,"title":"Limit","type":"integer"},"offset":{"default":0,"title":"Offset","type":"integer"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"open_captureArguments","type":"object"},"name":"open_capture","outputSchema":{"properties":{"result":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"open_captureOutput","type":"object"}},{"description":"compare hex payloads byte by byte.\n\nreturns how many payloads have each length, the byte at every position that is\nthe same in all of them (over the shortest), the positions that vary, and\nwhether the set looks like block-cipher output.","inputSchema":{"properties":{"payloads_hex":{"items":{"type":"string"},"title":"Payloads Hex","type":"array"}},"required":["payloads_hex"],"title":"diffArguments","type":"object"},"name":"diff","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"diffOutput","type":"object"}},{"description":"name the checksums and length fields one hex payload is consistent with.\n\nchecks sum8 and xor8 in the last byte, and the byte before a trailing end\nmarker, over the bytes after a leading start marker; crc16-ccitt in the last\ntwo; and a length byte at position 0 or 1.","inputSchema":{"properties":{"payload_hex":{"title":"Payload Hex","type":"string"}},"required":["payload_hex"],"title":"guess_checksArguments","type":"object"},"name":"guess_checks","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"guess_checksOutput","type":"object"}},{"description":"decrypt hex payloads with each candidate aes key, in ecb and in cbc with a\nzero iv, best-scoring first. samples holds the first plaintexts as hex.\n\nthe score only tells keys apart across several distinct payloads: with one\npayload, or identical copies, every key scores 1.0. keys that are not 16, 24\nor 32 bytes and payloads that are not a multiple of 16 bytes are skipped.","inputSchema":{"properties":{"keys_hex":{"items":{"type":"string"},"title":"Keys Hex","type":"array"},"payloads_hex":{"items":{"type":"string"},"title":"Payloads Hex","type":"array"}},"required":["payloads_hex","keys_hex"],"title":"try_keysArguments","type":"object"},"name":"try_keys","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"try_keysOutput","type":"object"}},{"description":"statically analyze a vendor android app (.apk, .xapk or .apks) already on disk.\n\ndetects the framework. for a native app it runs jadx and lists the uuids\n(gatt and rfcomm) in gatt_uuids and file:line candidates (uuids, aes keys,\nbase64 blobs, command builders, rfcomm socket calls) to open under jadx_dir,\nthe app's own package first and third-party libraries skipped.\neach list keeps at most 50 per kind; totals has the full counts, and when\nanything was cut a warning names the file under jadx_dir that lists them all.\nflutter and react-native apps keep their ble code compiled, so the warnings\npoint to capture analysis instead. harald never downloads apps.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"}},"required":["path"],"title":"analyze_apkArguments","type":"object"},"name":"analyze_apk","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"analyze_apkOutput","type":"object"}},{"description":"list the gadgets in harald's device library, with status and summary.","inputSchema":{"properties":{},"title":"list_devicesArguments","type":"object"},"name":"list_devices","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"list_devicesOutput","type":"object"}},{"description":"the device library entry for one slug, including any app-wide key and cipher.","inputSchema":{"properties":{"slug":{"title":"Slug","type":"string"}},"required":["slug"],"title":"load_deviceArguments","type":"object"},"name":"load_device","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"load_deviceOutput","type":"object"}},{"description":"the working notes for a device, or an empty string when there are none.\n\nnotes live in harald-work/<slug>/notes.md, relative to the server's working\ndirectory.","inputSchema":{"properties":{"slug":{"title":"Slug","type":"string"}},"required":["slug"],"title":"read_notesArguments","type":"object"},"name":"read_notes","outputSchema":{"properties":{"result":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"read_notesOutput","type":"object"}},{"description":"append a timestamped note to harald-work/<slug>/notes.md.\n\nthe path is relative to the server's working directory. slugs use lowercase\nletters, digits and hyphens, e.g. demo-lamp.","inputSchema":{"properties":{"slug":{"title":"Slug","type":"string"},"text":{"title":"Text","type":"string"}},"required":["slug","text"],"title":"save_noteArguments","type":"object"},"name":"save_note","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"save_noteOutput","type":"object"}},{"description":"list the bluetooth classic devices paired with this computer.\n\nconnected says whether each is linked to this computer now. use an address\nfrom here with classic_services, classic_send and classic_listen.","inputSchema":{"properties":{},"title":"classic_devicesArguments","type":"object"},"name":"classic_devices","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_devicesOutput","type":"object"}},{"description":"list a paired classic device's service records from this computer's cache.\n\neach record has a name, service-class uuids and an rfcomm channel (null when\nrfcomm cannot reach it). protected channels are standard profiles such as\nhands-free and headset, which harald never opens; firmware_update channels\nstay blocked for writes. refresh=true asks the device again instead of\ntrusting the cache.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"refresh":{"default":false,"title":"Refresh","type":"boolean"}},"required":["address"],"title":"classic_servicesArguments","type":"object"},"name":"classic_services","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_servicesOutput","type":"object"}},{"description":"send hex messages to a classic device's rfcomm channel and collect its answers.\n\nrefused unless the human armed this device by running `harald arm <address>`\nin their own terminal. each message spends one armed write, a query included,\nbecause classic has no read. all messages go over one connection, in order,\nwith `listen` seconds (at most 30) of listening after each, so handshakes and\nacks can be sent as messages. service is an rfcomm service uuid or channel number from\nclassic_services; standard profiles and channels missing from\nclassic_services are refused, and firmware-update channels stay blocked.\nreceived holds each chunk with the message number it followed (0 = before the\nfirst), seconds since the channel opened and the value as hex. stopped\nexplains a budget that ran out partway, or a link that failed after the first\nmessage; it is empty when every message was sent.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"listen":{"default":2.0,"title":"Listen","type":"number"},"messages_hex":{"items":{"type":"string"},"title":"Messages Hex","type":"array"},"service":{"title":"Service","type":"string"}},"required":["address","service","messages_hex"],"title":"classic_sendArguments","type":"object"},"name":"classic_send","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_sendOutput","type":"object"}},{"description":"open a classic device's rfcomm channel, send nothing, and collect `seconds`\n(at most 30) of what it says.\n\nneeds no arm, but standard profiles are still refused. service is an rfcomm\nservice uuid or channel number from classic_services. returns one entry per\nchunk: seconds since the channel opened and the value as hex.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"seconds":{"title":"Seconds","type":"number"},"service":{"title":"Service","type":"string"}},"required":["address","service","seconds"],"title":"classic_listenArguments","type":"object"},"name":"classic_listen","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_listenOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T00:33:28.519Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:33:29.448Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"harald helps you work out the bluetooth le or classic (rfcomm) protocol of a gadget the user owns: scan and connect over le, talk to the rfcomm channels of paired classic devices, decode phone captures, compare payloads, test candidate keys, scan the vendor's android app, and keep notes per device. write_char and classic_send are refused until the human runs `harald arm <address>` in their own terminal; no tool can arm. a tool that fails returns {\"error\": ..., \"hint\": ...}: act on the hint.","protocolVersion":"2025-11-25","serverInfo":{"name":"harald","version":"0.2.2"}}}}
{"at":"2026-11-23T00:33:29.448Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:33:29.448Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:33:29.451Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"scan for bluetooth le devices for `timeout` seconds, strongest signal first.\n\nmanufacturer_data maps each company id (as 0x-hex) to its payload hex.","inputSchema":{"properties":{"timeout":{"default":5.0,"title":"Timeout","type":"number"}},"title":"scanArguments","type":"object"},"name":"scan","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"scanOutput","type":"object"}},{"description":"connect to a device and list its gatt services and their characteristics.\n\nuse the characteristic uuids listed here with read_char, write_char and subscribe.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"}},"required":["address"],"title":"connectArguments","type":"object"},"name":"connect","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"connectOutput","type":"object"}},{"description":"read a characteristic once; returns its value as hex.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"char_uuid":{"title":"Char Uuid","type":"string"}},"required":["address","char_uuid"],"title":"read_charArguments","type":"object"},"name":"read_char","outputSchema":{"properties":{"result":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"read_charOutput","type":"object"}},{"description":"write hex bytes to a characteristic; returns the writes left.\n\nrefused unless the human armed this device by running `harald arm <address>`\nin their own terminal. each write spends one from that budget, and\nfirmware-update services stay blocked. by default it writes without response\nwhen the characteristic allows that, and with response otherwise.\nresponse=true waits for the device to acknowledge the write; false does not.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"char_uuid":{"title":"Char Uuid","type":"string"},"data_hex":{"title":"Data Hex","type":"string"},"response":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Response"}},"required":["address","char_uuid","data_hex"],"title":"write_charArguments","type":"object"},"name":"write_char","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"write_charOutput","type":"object"}},{"description":"collect notifications from a characteristic for `seconds`.\n\nreturns one entry per notification: seconds since the start and the value as hex.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"char_uuid":{"title":"Char Uuid","type":"string"},"seconds":{"title":"Seconds","type":"number"}},"required":["address","char_uuid","seconds"],"title":"subscribeArguments","type":"object"},"name":"subscribe","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"subscribeOutput","type":"object"}},{"description":"show the att and rfcomm timeline of a phone capture (.pklg or btsnoop log).\n\none line per event with time, acl connection, direction, op and value hex. att\nevents show their handle and uuid; rfcomm events (rfcomm data, rfcomm_open and\nrfcomm_close) show their server channel, e.g. ch=9. any warnings come first and\na `showing a–b of n events` footer comes last. a capture can hold several\nconnections, each with its own handles. page with limit and offset. handle (an\ninteger, e.g. 18 for h=0x0012) keeps only att events on that handle, channel\n(e.g. 9) only rfcomm events on that channel, conn (e.g. 64 for c=0x0040) only\nevents on that connection, and offset then counts those filtered events. for a\nbluetooth classic gadget, capture its android app in a btsnoop log: an iphone\napp reaches classic gadgets only through apple iap2, which harald shows as\nrfcomm data but can't unwrap yet. relative paths resolve against the server's\nworking directory.","inputSchema":{"properties":{"channel":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Channel"},"conn":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Conn"},"handle":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Handle"},"limit":{"default":200,"title":"Limit","type":"integer"},"offset":{"default":0,"title":"Offset","type":"integer"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"open_captureArguments","type":"object"},"name":"open_capture","outputSchema":{"properties":{"result":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"open_captureOutput","type":"object"}},{"description":"compare hex payloads byte by byte.\n\nreturns how many payloads have each length, the byte at every position that is\nthe same in all of them (over the shortest), the positions that vary, and\nwhether the set looks like block-cipher output.","inputSchema":{"properties":{"payloads_hex":{"items":{"type":"string"},"title":"Payloads Hex","type":"array"}},"required":["payloads_hex"],"title":"diffArguments","type":"object"},"name":"diff","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"diffOutput","type":"object"}},{"description":"name the checksums and length fields one hex payload is consistent with.\n\nchecks sum8 and xor8 in the last byte, and the byte before a trailing end\nmarker, over the bytes after a leading start marker; crc16-ccitt in the last\ntwo; and a length byte at position 0 or 1.","inputSchema":{"properties":{"payload_hex":{"title":"Payload Hex","type":"string"}},"required":["payload_hex"],"title":"guess_checksArguments","type":"object"},"name":"guess_checks","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"guess_checksOutput","type":"object"}},{"description":"decrypt hex payloads with each candidate aes key, in ecb and in cbc with a\nzero iv, best-scoring first. samples holds the first plaintexts as hex.\n\nthe score only tells keys apart across several distinct payloads: with one\npayload, or identical copies, every key scores 1.0. keys that are not 16, 24\nor 32 bytes and payloads that are not a multiple of 16 bytes are skipped.","inputSchema":{"properties":{"keys_hex":{"items":{"type":"string"},"title":"Keys Hex","type":"array"},"payloads_hex":{"items":{"type":"string"},"title":"Payloads Hex","type":"array"}},"required":["payloads_hex","keys_hex"],"title":"try_keysArguments","type":"object"},"name":"try_keys","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"try_keysOutput","type":"object"}},{"description":"statically analyze a vendor android app (.apk, .xapk or .apks) already on disk.\n\ndetects the framework. for a native app it runs jadx and lists the uuids\n(gatt and rfcomm) in gatt_uuids and file:line candidates (uuids, aes keys,\nbase64 blobs, command builders, rfcomm socket calls) to open under jadx_dir,\nthe app's own package first and third-party libraries skipped.\neach list keeps at most 50 per kind; totals has the full counts, and when\nanything was cut a warning names the file under jadx_dir that lists them all.\nflutter and react-native apps keep their ble code compiled, so the warnings\npoint to capture analysis instead. harald never downloads apps.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"}},"required":["path"],"title":"analyze_apkArguments","type":"object"},"name":"analyze_apk","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"analyze_apkOutput","type":"object"}},{"description":"list the gadgets in harald's device library, with status and summary.","inputSchema":{"properties":{},"title":"list_devicesArguments","type":"object"},"name":"list_devices","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"list_devicesOutput","type":"object"}},{"description":"the device library entry for one slug, including any app-wide key and cipher.","inputSchema":{"properties":{"slug":{"title":"Slug","type":"string"}},"required":["slug"],"title":"load_deviceArguments","type":"object"},"name":"load_device","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"load_deviceOutput","type":"object"}},{"description":"the working notes for a device, or an empty string when there are none.\n\nnotes live in harald-work/<slug>/notes.md, relative to the server's working\ndirectory.","inputSchema":{"properties":{"slug":{"title":"Slug","type":"string"}},"required":["slug"],"title":"read_notesArguments","type":"object"},"name":"read_notes","outputSchema":{"properties":{"result":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"read_notesOutput","type":"object"}},{"description":"append a timestamped note to harald-work/<slug>/notes.md.\n\nthe path is relative to the server's working directory. slugs use lowercase\nletters, digits and hyphens, e.g. demo-lamp.","inputSchema":{"properties":{"slug":{"title":"Slug","type":"string"},"text":{"title":"Text","type":"string"}},"required":["slug","text"],"title":"save_noteArguments","type":"object"},"name":"save_note","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"save_noteOutput","type":"object"}},{"description":"list the bluetooth classic devices paired with this computer.\n\nconnected says whether each is linked to this computer now. use an address\nfrom here with classic_services, classic_send and classic_listen.","inputSchema":{"properties":{},"title":"classic_devicesArguments","type":"object"},"name":"classic_devices","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_devicesOutput","type":"object"}},{"description":"list a paired classic device's service records from this computer's cache.\n\neach record has a name, service-class uuids and an rfcomm channel (null when\nrfcomm cannot reach it). protected channels are standard profiles such as\nhands-free and headset, which harald never opens; firmware_update channels\nstay blocked for writes. refresh=true asks the device again instead of\ntrusting the cache.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"refresh":{"default":false,"title":"Refresh","type":"boolean"}},"required":["address"],"title":"classic_servicesArguments","type":"object"},"name":"classic_services","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_servicesOutput","type":"object"}},{"description":"send hex messages to a classic device's rfcomm channel and collect its answers.\n\nrefused unless the human armed this device by running `harald arm <address>`\nin their own terminal. each message spends one armed write, a query included,\nbecause classic has no read. all messages go over one connection, in order,\nwith `listen` seconds (at most 30) of listening after each, so handshakes and\nacks can be sent as messages. service is an rfcomm service uuid or channel number from\nclassic_services; standard profiles and channels missing from\nclassic_services are refused, and firmware-update channels stay blocked.\nreceived holds each chunk with the message number it followed (0 = before the\nfirst), seconds since the channel opened and the value as hex. stopped\nexplains a budget that ran out partway, or a link that failed after the first\nmessage; it is empty when every message was sent.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"listen":{"default":2.0,"title":"Listen","type":"number"},"messages_hex":{"items":{"type":"string"},"title":"Messages Hex","type":"array"},"service":{"title":"Service","type":"string"}},"required":["address","service","messages_hex"],"title":"classic_sendArguments","type":"object"},"name":"classic_send","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_sendOutput","type":"object"}},{"description":"open a classic device's rfcomm channel, send nothing, and collect `seconds`\n(at most 30) of what it says.\n\nneeds no arm, but standard profiles are still refused. service is an rfcomm\nservice uuid or channel number from classic_services. returns one entry per\nchunk: seconds since the channel opened and the value as hex.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"},"seconds":{"title":"Seconds","type":"number"},"service":{"title":"Service","type":"string"}},"required":["address","service","seconds"],"title":"classic_listenArguments","type":"object"},"name":"classic_listen","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Result"}},"required":["result"],"title":"classic_listenOutput","type":"object"}}]}}}
