MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / parseArguments

Function parseArguments

src/ifcchat/api_anthropic.js:3–10  ·  view source on GitHub ↗
(argumentsText)

Source from the content-addressed store, hash-verified

1// This file was generated with the assistance of an AI coding tool.
2
3function parseArguments(argumentsText) {
4 if (!argumentsText) return {};
5 try {
6 return JSON.parse(argumentsText);
7 } catch {
8 return {};
9 }
10}
11
12function toAnthropicTools(tools = []) {
13 return tools.map((tool) => ({

Callers 1

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected