Commands  ›   ›  Change Text Type

Change Text Type

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open. A valid TextNote element must exist with the given ID. The target TextNoteType must exist in the document.

After it runs

The TextNote's type is changed to the specified TextNoteType. Result JSON is stored in LastQueryResult.

When to use this

Don't use this when

Creating new text notes (use PlaceTextNoteCommand). Changing text content (use EditTextNoteContentCommand). Changing all text notes in view at once (use ChangeAllTextTypesInViewCommand).

Inputs

NameKindTypeRequiredDefaultDescription
textNoteId config integer no TextNote element ID to change
textType config string no Target text type name

Returns

NameTypeDescription
ResultJSONText type change result with success flag, textNoteId, textType

What you'll see in the chat

on start
Changing the text note type...
Updating text style now...
thinking
Resolving text note element...
Finding target text type in document...
Applying type change...
on success
Text note type changed to {textType} successfully.
on failure
Could not change text type: {error}

REST API

Not yet exposed

This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:

  • POST /api/v1/commands/change_text_type
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

change text type · set text style · text note type · text formatting · update text type
Patterns: change * text * type · set * text * style · update * text * type

Pillar