coda_resolve_link
Extract metadata from a Coda object URL to enable AI assistants to interact with Coda documents effectively, supporting operations like reading and updating content.
Instructions
Resolve metadata given a browser link to a Coda object
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to resolve |
Implementation Reference
- src/server.ts:278-289 (handler)Executes the tool logic by calling resolveBrowserLink SDK function with the provided URL and returning the resolved metadata as JSON or an error.async ({ url }): Promise<CallToolResult> => { try { const resp = await resolveBrowserLink({ query: { url }, throwOnError: true, }); return { content: [{ type: "text", text: JSON.stringify(resp.data) }] }; } catch (error) { return { content: [{ type: "text", text: `Failed to resolve link: ${error}` }], isError: true }; } },
- src/server.ts:275-277 (schema)Zod schema for input validation: requires a 'url' string parameter.{ url: z.string().describe("The URL to resolve"), },
- src/server.ts:272-290 (registration)Registers the 'coda_resolve_link' MCP tool with the server, specifying name, description, input schema, and handler function.server.tool( "coda_resolve_link", "Resolve metadata given a browser link to a Coda object", { url: z.string().describe("The URL to resolve"), }, async ({ url }): Promise<CallToolResult> => { try { const resp = await resolveBrowserLink({ query: { url }, throwOnError: true, }); return { content: [{ type: "text", text: JSON.stringify(resp.data) }] }; } catch (error) { return { content: [{ type: "text", text: `Failed to resolve link: ${error}` }], isError: true }; } }, );