{"ok":true,"site":{"host":"lian0123.github.io","url":"https://lian0123.github.io/virtual-business-card-project/","type":"live","desc":"","tools":[{"name":"card.getState","kind":"answer","impl":"imperative","description":"Returns the current state of the virtual business card application, including card type, language, theme, all card data fields, QR content, and WebMCP status.","annotations":{"readOnlyHint":"true"},"inputSchema":{},"outputSchema":{"type":"object","properties":{"cardType":{"type":"string","description":"Current card type (main, qr, custom)"},"lang":{"type":"string","description":"Current locale code"},"theme":{"type":"string","description":"Current theme (light or dark)"},"cardData":{"type":"object","description":"All card data fields"},"qrContent":{"type":"string","description":"Current QR code content"},"webMcp":{"type":"object","description":"WebMCP status info"}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.setType","kind":"act","impl":"imperative","description":"Sets the card type to one of: \"main\" (standard business card), \"qr\" (QR code card), or \"custom\" (fully customizable card).","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"cardType":{"type":"string","enum":["main","qr","custom"],"description":"The card type to switch to."}},"required":["cardType"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.setLanguage","kind":"act","impl":"imperative","description":"Sets the UI language/locale for the application. Supports locale codes like \"zh-TW\", \"en-US\", \"ja-JP\", \"ko-KR\", \"fr-FR\", \"de-DE\", \"es-ES\", etc.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"lang":{"type":"string","description":"BCP 47 locale code (e.g. \"en-US\", \"zh-TW\", \"ja-JP\")"}},"required":["lang"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.setTheme","kind":"act","impl":"imperative","description":"Sets the application theme to \"light\" or \"dark\" mode.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"theme":{"type":"string","enum":["light","dark"],"description":"The theme to apply."}},"required":["theme"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.updateField","kind":"act","impl":"imperative","description":"Updates a single field on the business card. Common fields: name, title, company, email, phone, address, website, country, bgGradientColor1, bgGradientColor2, textColor, accentColor.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"field":{"type":"string","description":"The card data field name to update."},"value":{"description":"The new value for the field."}},"required":["field","value"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.updateFields","kind":"act","impl":"imperative","description":"Updates multiple card data fields at once. Pass an object where keys are field names and values are the new values.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"updates":{"type":"object","description":"Object mapping field names to new values. e.g. { \"name\": \"Alex\", \"title\": \"Engineer\" }"}},"required":["updates"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.updateLayout","kind":"act","impl":"imperative","description":"Updates layout-related card fields such as fontSize, borderRadiusOuter, borderRadiusInner, shadowBlur, padding, etc.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"updates":{"type":"object","description":"Object mapping layout field names to new values. e.g. { \"fontSize\": 16, \"borderRadiusOuter\": 18 }"}},"required":["updates"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.setQrContent","kind":"act","impl":"imperative","description":"Sets the content (URL or text) encoded in the QR code on the card.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"value":{"type":"string","description":"The content/URL to encode in the QR code."}},"required":["value"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.applyTemplate","kind":"act","impl":"imperative","description":"Applies a predefined design template to the card. Available templates include \"professional\", \"creative\", \"minimal\", etc.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"templateName":{"type":"string","description":"The name of the template to apply."}},"required":["templateName"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.setBackgroundImage","kind":"act","impl":"imperative","description":"Sets the background image of the card from a URL. The card type should be \"custom\" to display background images.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"imageUrl":{"type":"string","description":"URL of the image to use as card background.","format":"uri"}},"required":["imageUrl"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.export","kind":"act","impl":"imperative","description":"Exports the business card in the specified format. Supported formats: \"png\", \"jpg\", \"webp\" (image), \"html\" (standalone HTML file), \"vcf\" (vCard contact file).","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"format":{"type":"string","enum":["png","jpg","webp","html","vcf"],"description":"The export format."}},"required":["format"]},"outputSchema":{"type":"string","description":"Confirmation message with export format"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.simulateAction","kind":"act","impl":"imperative","description":"Simulates a user interaction on the card UI. Supports \"click\" action with targets like \"export.png\", \"export.jpg\", \"export.webp\", \"export.html\", \"export.vcf\", \"animation.replay\", \"animation.toggle\". Also supports \"input\" action to remotely fill a field.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["click","input"],"description":"The type of action to simulate."},"target":{"type":"string","description":"The target element or field for the action."},"value":{"description":"The value to input (only for \"input\" action)."}},"required":["action","target"]},"outputSchema":{"type":"string","description":"Confirmation message describing what was simulated"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]},{"name":"card.setState","kind":"act","impl":"imperative","description":"Applies a partial state patch to the application. Can update top-level properties (cardType, lang, theme, qrContent) and nested cardData fields simultaneously.","annotations":{"readOnlyHint":"false"},"inputSchema":{"type":"object","properties":{"statePatch":{"type":"object","description":"Partial state to merge. Top-level keys: cardType, lang, theme, qrContent, selectedTemplate, customImage, textStickers, cardData (object).","properties":{"cardType":{"type":"string","enum":["main","qr","custom"]},"lang":{"type":"string"},"theme":{"type":"string","enum":["light","dark"]},"qrContent":{"type":"string"},"selectedTemplate":{"type":"string"},"customImage":{"type":"string"},"textStickers":{"type":"array"},"cardData":{"type":"object"}}}},"required":["statePatch"]},"outputSchema":{"type":"string","description":"Confirmation message"},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/virtual-business-card-project/","pages":["/virtual-business-card-project/"]}],"category":"Productivity & Business","favicon":"/favicons/lian0123.github.io.png","apiSurface":"spec","toolCount":13}}