OpenClawSkills
GitHub

Whois Lookup

Community

Retrieve domain registration information.

Installation

Save as `whois.js`. Uses rdap.org.

Source Code

JavaScript
Tutorial.terminal

// whois.js

module.exports = async function(context) {
    const domain = context.args[0];
    if (!domain) return { error: "Domain required" };
    
    const res = await fetch(`https://rdap.org/domain/${domain}`);
    const data = await res.json();
    
    if (data.errorCode) return { error: "Domain not found" };
    
    return {
        domain: data.handle,
        events: data.events,
        status: data.status
    };
};

Live Preview

● Live Demo
Agent Session
Starting session...

How to use

  • Ensure you have the necessary dependencies installed (if any).
  • Place the file in your OpenClaw skills folder (e.g., ~/.openclaw/skills/).
  • Restart your agent or reload configuration.
  • Invoke it using the filename (without extension) as the tool name, or through natural language if the description is clear.