mdns_register_service
Registers a service on the local network so other devices can discover it using mDNS, specifying name, service type, port, and optional TXT records.
Instructions
Register a new service on the local network via mDNS.
This tool registers a service so other devices on the network can discover it. The service will be advertised with the specified type, port, and optional TXT records.
Args: params (RegisterServiceInput): Validated input parameters containing: - name (str): Service name (e.g., 'My Web Server') - service_type (str): Service type (e.g., '_http._tcp') - port (int): Port number - host (Optional[str]): Host IP (auto-detected if not provided) - text_records (Optional[Dict[str, str]]): TXT record key-value pairs
Returns: str: Registration result or error message
Example: >>> mdns_register_service(RegisterServiceInput(name="MyServer", service_type="_http._tcp", port=8080)) "Successfully registered service: MyServer._http._tcp.local. on port 8080"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |