Skip to content

Conversation

@kangjoseph90
Copy link
Contributor

PR Checklist

  • Have you checked if it works normally in all models? Ignore this if it doesn't use models.
  • Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions?
  • Have you added type definitions?

Description

This PR introduces new LUA API functions to retrieve and embed character and persona images.

  • getCharacterImage(triggerId): Writes the character's image to the inlay and returns a string for the embedded image (e.g., {{inlayed::asset/abc...123.png}}).
  • getPersonaImage(triggerId): Does the same for the persona's image.

This is primarily useful for providing reference images to an LLM, such as sending a character's reference image to a model like gemini-2.5-flash-image-preview.

Both functions return nil if the image is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant