Spaces:
Running
Running
Download src/tools/template.js from LiquidAI/LFM2-MCP: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/LiquidAI/LFM2-MCP/resolve/refs%2Fpr%2F2/src/tools/template.js
- Command line
-
hf download hf://spaces/LiquidAI/LFM2-MCP@refs/pr/2/src/tools/template.js
-
curl -L -o template.js https://huggingface.co/spaces/LiquidAI/LFM2-MCP/resolve/refs%2Fpr%2F2/src/tools/template.js
1.28 kB
| /** | |
| * Description of the tool. | |
| * @param {any} parameter1 - Description of the first parameter. | |
| * @param {any} parameter2 - Description of the second parameter. | |
| * @returns {any} Description of the return value. | |
| */ | |
| export function new_tool(parameter1, parameter2) { | |
| // TODO: Implement the tool logic here | |
| return true; // Placeholder return value | |
| } | |
| export default (input, output) => | |
| React.createElement( | |
| "div", | |
| { className: "bg-amber-50 border border-amber-200 rounded-lg p-4" }, | |
| React.createElement( | |
| "div", | |
| { className: "flex items-center mb-2" }, | |
| React.createElement( | |
| "div", | |
| { | |
| className: | |
| "w-8 h-8 bg-amber-100 rounded-full flex items-center justify-center mr-3", | |
| }, | |
| "🛠️", | |
| ), | |
| React.createElement( | |
| "h3", | |
| { className: "text-amber-900 font-semibold" }, | |
| "Tool Name", | |
| ), | |
| ), | |
| React.createElement( | |
| "div", | |
| { className: "text-sm space-y-1" }, | |
| React.createElement( | |
| "p", | |
| { className: "text-amber-700 font-medium" }, | |
| `Input: ${JSON.stringify(input)}`, | |
| ), | |
| React.createElement( | |
| "p", | |
| { className: "text-amber-600 text-xs" }, | |
| `Output: ${output}`, | |
| ), | |
| ), | |
| ); | |