AN
Antinote
Docs
  • Docs
  • Changelog
  • Feature requests
  • Support portal
    • Installing Extensions
    • Managing Extensions & API Keys
    • Using Commands
    • Autocomplete
    • Argument Syntax
    • Making Your Own

Argument Syntax

How commas and quotes are parsed inside a command's parentheses.

Commands take their parameters between the parentheses, separated by commas. Spaces around commas are fine.

  • Commas separate parameters
  • Wrap a value in quotes to protect commas inside it
  • Quotes are stripped before the extension sees the value
  • Use \" to escape a quote inside a quoted value
::gpt(Hello world)        → one parameter: Hello world
::gpt("Hello, world")     → one parameter: Hello, world
::gpt(Hello, world)       → two parameters!
::gpt("Write a haiku", 100, 1.2)
::gpt()                   → no parameters

Tip: If a command seems to be receiving your text in pieces, check for unquoted commas — ::gpt(Hello, world) is two parameters, not one.

PrevAutocomplete
NextMaking Your Own
Was this helpful?