Journey

Journey chapter

Designing interfaces for AI agents

Semantic design export, followed by Visily MCP, moved my focus from human-facing features to secure, concise interfaces for coding agents.

Agent interfacesArchitecture

What changed

By 2026, I had spent years helping external structures enter Visily: Figma documents, AI-generated designs, screenshots, sketches, and live webpages. The next challenge reversed the direction. Visily needed to express its own designs in a form that AI coding agents could understand and use.

A screenshot was not enough. It showed appearance but forced an agent to infer hierarchy, exact text, spacing, colors, component boundaries, and responsive intent. The canvas document contained richer meaning, but its private representation was designed for Visily’s editor—not for an external model.

I worked closely on a semantic design exporter and later on the Visily MCP server that exposed design context to coding agents. Together, these systems connected the work of the previous chapters: native editor elements became structured external context, and the same element vocabulary could travel both into and out of Visily.

Completing Figma import with more deliberate quality

The Figma import work begun in late 2025 continued into 2026. My implementation contributions covered the conversion pipeline, entry points, font preprocessing, asset handling, progress and cancellation behavior, editor insertion, undo and redo, and the mapping of imported components into reusable Visily content. Teammates remained essential to product direction, UX, review, testing, and the systems around that path.

Missing fonts became one of the clearest examples of graceful degradation. A silent substitution can preserve the existence of text while changing its geometry and visual identity. Instead, the importer collected unavailable font families and surfaced the need for a fallback decision. The user remained part of a conversion that could not be perfectly automatic.

I also added unit tests for the element adapters and non-UI plugin modules. Writing them changed how I read the conversion. A test forces you to state what a mapping is supposed to produce, and stating it makes assumptions visible that a side-by-side visual comparison never surfaces. Tests do more than protect known behavior—they challenge assumptions embedded in a conversion.

That shift matters to my journey. In earlier chapters, I mostly described conversion behavior after building it. Here, I was beginning to define it explicitly and test it as a contract.

Giving the canvas a semantic external language

The semantic design exporter began near the end of 2025 and became foundational in 2026. I helped establish its architecture and worked closely with another engineer on its development. My part included much of the element vocabulary, context and style handling, fidelity work, and the eventual connection to MCP.

The exporter represented native Visily content—including text, images, containers, controls, tables, navigation, and charts—in a structured form useful to downstream coding tools. It preserved hierarchy, content, geometry, ordering, fonts, and relevant visual intent without exposing the editor’s private document model.

This was not simply serialization. A canvas representation and an implementation-oriented representation follow different assumptions. Translating between them requires deciding which facts are essential, which details are noise, and which structure communicates the design’s intent most usefully.

Text was especially demanding. Line breaks, repeated spaces, wrapping, font readiness, and styling all affect whether exported context retains the design. Ordering, stacking, image bounds, table padding, chart labels, and shadow order formed another long fidelity tail.

The exporter was a team result. A close collaborator contributed substantially to it, another engineer built much of the supporting export infrastructure, and other teammates shaped its product use. My part was significant, but it only became useful because those contributions met at the same boundary.

Making elements addressable to AI

Structured design context gave AI something readable, but modification required identity. It was not enough for a model to receive the whole design; it needed to know which part corresponded to the element a user selected.

My contribution here was adding element identity to the exported representation and connecting selection to the AI modification path. This allowed an existing design to be represented as full structured context while a specific target remained addressable within it.

That changed the exporter from a one-way download feature into infrastructure for three related capabilities:

  1. AI could read an existing design with more structure than a screenshot provides.
  2. A selected element could be located and modified within that context.
  3. MCP could give coding agents structured semantic design context.

The responsive-code guidelines around that output involved work by other teammates. My contribution was the representation that made responsive code generation possible, not every rule governing the final generated application.

The round trip

By this point, I had contributed substantially to both directions of a useful transformation:

external or AI-generated structure → editable Visily elements
editable Visily elements → semantic design context

That symmetry created a powerful verification idea. An element could be exported into markup and mapped back into Visily. When text color, shadow order, table alignment, or control structure changed incorrectly, the round trip exposed the mismatch between the two contracts.

Round-trip success does not prove that the markup is ideal application code, and pixel equality does not prove that the result is meaningfully editable. But exercising both directions helped reveal where the shared vocabulary disagreed with itself.

It also represented a personal milestone. The controls and elements I began learning in 2021 had become a language I could translate across tools, browsers, AI pipelines, and now coding agents.

Building the Visily MCP server

In June 2026, I began working closely on the MCP server. The public goal was to let developers use Visily designs while working inside AI coding tools: discover relevant boards or screens, retrieve semantic design context, access visual references and themes when useful, and generate implementation code with Visily as the source of truth.

The preferred interaction was deliberately narrow. An agent should perform enough discovery to locate the relevant design, then make a focused context request. A screenshot or theme could supplement that response when needed. Returning everything by default would consume the agent’s finite context window and make the useful information harder to find.

This was one of the first times my direct consumer was not a person. Tool names, descriptions, schemas, response sizes, and error semantics became the user interface. There was no human reading a vague message and deciding what the API probably meant. An agent needed enough structure to choose the next action—or a clear instruction that retrying would not help.

Authentication for clients we could not predict

MCP clients are numerous and continue to change. Manually registering every compatible coding tool would not scale, and distributing long-lived API keys would create a poor security and revocation model.

Within the team’s MCP work, I implemented an OAuth-based access flow with dynamic client registration. Compatible clients could register without a manual provisioning step, while users saw a consent experience and retained control over connected clients. My contributions also included client management and revocation behavior, authorization, and rate limiting.

This made security part of the product surface rather than a hidden prerequisite. Users needed to understand which client was requesting access and be able to remove that relationship later. Agents needed explicit authorization failures instead of errors that encouraged pointless retries.

I keep the token implementation, exact scopes, limits, and internal access model out of this portfolio. The publishable lesson is the design choice: dynamic OAuth clients with visible consent and revocation were a better fit than static credentials for an open-ended agent ecosystem.

My contribution within the team

For the semantic design exporter, I contributed early architecture, much of the element vocabulary and fidelity work, element identity for AI modification, and the connection of structured design context and assets to MCP. Close collaborators built important parts of both the exporter and its supporting infrastructure.

For MCP, I contributed substantially across the core protocol surface, OAuth dynamic client registration, consent and client management, authorization behavior, design-context formats, and rate limiting. I helped start client distribution, while teammates expanded it and prepared the broader public release.

I also completed the Figma import path and its first meaningful adapter tests. Across all three areas, the shared ownership theme was turning a conversion or protocol boundary into an explicit, inspectable contract.

The public result lets coding agents discover Visily designs, retrieve semantic context and themes, and use those designs while generating code. I do not include adoption metrics because none are established by the public evidence available to this portfolio.

What was hard

The hardest technical problem in the exporter was reconciling canvas geometry with useful external context. A literal translation can preserve pixels while communicating little intent. A highly abstract translation can lose the fidelity needed for design context or modification. The exporter had to live between those goals.

The hardest interface problem in MCP was deciding what an agent needed and what would only consume context. Human-facing APIs often optimize for completeness and discoverability. Agent-facing tools also need economy: every redundant field competes with the instructions and code the model needs to reason about.

The hardest security problem was supporting unknown clients without turning access into an uncontrolled secret-distribution exercise.

None of these problems were solved by a prompt alone. They required the same traditional engineering disciplines I had used throughout the journey: typed contracts, explicit state, authorization, failure semantics, testing, observability, and ownership boundaries.

The judgment I developed

An agent interface needs different discipline from both a human UI and a conventional internal API.

  • Context is a budget. Return the smallest representation that preserves the decision the agent must make.
  • Descriptions drive behavior. Tool names and schemas are not passive documentation; they shape which action the agent attempts.
  • Errors need next-step semantics. Distinguish retryable failure, missing input, and forbidden access clearly.
  • Identity cannot be assumed. Unknown clients need a secure registration and consent model.
  • Semantic structure beats pixels. Give the agent hierarchy, copy, styles, and theme relationships instead of asking it to infer them all from an image.
  • Probabilistic consumers need deterministic boundaries. The agent may vary, but authentication, validation, rate limits, and protocol behavior should not.

I also became more precise about contribution. Building at boundaries almost always involves another person’s system. Credibility comes from naming my part clearly while recognizing the product, design, infrastructure, review, testing, and maintenance that made it possible.

Looking back

I would make quality evaluation, protocol-level observability, and context-size measurement part of the first version. A tool can be technically correct and still provide context that leads agents toward weak results. The interface needs evaluation at the level of the job it enables, not only whether each endpoint returns valid data.

I would formalize consistency fixtures across editable import and semantic export, while keeping separate tests for semantic usefulness and visual fidelity. Passing through both directions is a strong consistency check, but it should not become the only definition of quality.

I would also document design rationales alongside test cases: why one tool is narrow, why an authorization error must not be retried, which context is optional, and which representation trade-offs are intentional. Tests preserve behavior; rationale preserves judgment.

Where this leaves me

In 2021, my work began with the behavior of a toolbar control. By 2026, I was designing contracts between a canvas editor and coding agents, including the representation, authentication, deployment behavior, testing, and handoff around that interface.

The feature names changed—comments, Table, performance, Figma, generative UI, browser extension, semantic design export, MCP—but the thread is consistent. I care about preserving what makes a user’s work valuable while it moves through a system. I care that generated content remains editable, that integrations fail honestly, that performance work does less rather than merely running harder, and that boundaries are explicit enough for the next person to reason about.

This is not the end of the journey. It is the point from which I can finally see its shape: from implementing interactions, to owning systems, to defining representations, to designing interfaces for collaborators who may be people, products, or agents.