package kiapi.common.commands

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AddLibraryTableEntry

library_commands.proto:69

Inserts a new row into the given library table. Returns LibraryCommandStatus Since: 11.0

message AddToSelection

editor_commands.proto:382

Adds the given items to the selection. Returns SelectionResponse

message AddVariant

variant_commands.proto:56

Adds a variant to the registry. Errors with AS_BAD_REQUEST when the name already exists (case-insensitive).

message BeginCommit

editor_commands.proto:144

Begins a staged set of changes. Any modifications made to a document through the API after this call will be saved to a pending commit, and will not appear in KiCad until a matching call to END_COMMIT.

message BeginCommitResponse

editor_commands.proto:151

enum BoundingBoxMode

editor_commands.proto:339

Used in: GetBoundingBox

message ClearSelection

editor_commands.proto:400

Removes all items from selection

message CloseAllDocuments

project_commands.proto:154

Closes all open documents (currently only supported in CLI api-server mode)

message CloseDocument

project_commands.proto:147

enum CommitAction

editor_commands.proto:158

Used in: EndCommit

message CopyVariant

variant_commands.proto:94

Copies an existing variant to a new variant, including copying all item overrides in the existing variant (that is, does a deep copy)

message CreateDocument

project_commands.proto:175

Creates a new document (in memory; does not save to disk) Currently board and schematic files can be created. A project will be created for the document if it doesn't already exist. Will return an error if the current document is unsaved: save or revert first Returns OpenDocumentResponse Since: 11.0

message CreateItems

editor_commands.proto:187

Creates new items on a given document

message CreateItemsResponse

editor_commands.proto:230

message CrossProbeAnnounce

cross_probe_commands.proto:40

Internal KiCad API; may be removed without notice. When running in standalone, the first frame to start will get the well-known API socket path. Others can use this to set up a bidirectional link. Since we don't plan to keep standalone mode around for the long-term, this is a temporary workaround that doesn't change the whole paradigm of the API away from client-server.

message CrossProbeAnnounceResponse

cross_probe_commands.proto:48

Internal KiCad API; may be removed without notice.

enum CrossProbeStatus

cross_probe_commands.proto:26

Used in: CrossProbeAnnounceResponse, FocusOnItemResponse, HighlightNetsResponse, SyncSelectionResponse

message CurrentVariantResponse

variant_commands.proto:118

message DeleteItems

editor_commands.proto:303

Deletes items in a given document

message DeleteItemsResponse

editor_commands.proto:327

message DeleteLibraryTableEntry

library_commands.proto:91

Deletes a row from the given library table by nickname. Returns LibraryCommandStatus Since: 11.0

message DeleteVariant

variant_commands.proto:67

Deletes a variant and all its per-instance records Deleting the current variant resets the active variant to default.

enum DocumentModifiedState

editor_commands.proto:57

Used in: GetDocumentModifiedStateResponse

message EndCommit

editor_commands.proto:166

message EndCommitResponse

editor_commands.proto:182

(message has no fields)

message ExpandTextVariables

project_commands.proto:93

message ExpandTextVariablesResponse

project_commands.proto:106

message FocusOnItem

cross_probe_commands.proto:118

message FocusOnItemResponse

cross_probe_commands.proto:123

message FocusOnItems

editor_commands.proto:410

Ensures the given items are visible and zooms to fit them. The bounding box of all given items will be expanded by `margin` if present. Returns an error if any of the given `items` are not in `document`. Available only in interactive mode and when the editor in question is idle. Returns Empty

message FootprintSelectionSpec

cross_probe_commands.proto:54

Used in: SelectionSpec

message GetBoundingBox

editor_commands.proto:346

message GetBoundingBoxResponse

editor_commands.proto:357

message GetCurrentVariant

variant_commands.proto:113

message GetDocumentModifiedState

editor_commands.proto:65

Checks whether a document currently open in an editor or headless context has unsaved changes

message GetDocumentModifiedStateResponse

editor_commands.proto:70

message GetItems

editor_commands.proto:242

message GetItemsById

editor_commands.proto:252

message GetItemsFromLibrary

library_commands.proto:179

Requests the full content of items contained in a library or set of libraries Returns GetItemsResponse Since: 11.0

message GetItemsResponse

editor_commands.proto:260

message GetKiCadBinaryPath

base_commands.proto:42

Returns the full path to the given KiCad binary

message GetLibraryItems

library_commands.proto:161

Requests items contained in a library or set of libraries Returns LibraryItemsResponse Since: 11.0

message GetLibraryStatuses

library_commands.proto:109

Queries the load status of each library of the given type(s) Returns LibraryStatusResponse Since: 11.0

message GetLibraryTable

library_commands.proto:45

Returns LibraryTableResponse Since: 11.0

message GetNetClassAssignments

project_commands.proto:64

Returns NetClassAssignmentsResponse Since: 11.0

message GetNetClasses

project_commands.proto:28

message GetOpenDocuments

editor_commands.proto:46

Retrieves a list of open documents of the given type

message GetOpenDocumentsResponse

editor_commands.proto:52

message GetPageSettings

editor_commands.proto:459

returns common.types.PageSettings

message GetPaths

base_commands.proto:110

Returns the set of well-known filesystem paths used by KiCad. These paths are not guaranteed to actually exist or be accessible to an API client. The meaning of these paths and their actual location are not API guarantees. Returns GetPathsResponse

(message has no fields)

message GetPathsResponse

base_commands.proto:122

message GetPluginSettingsPath

base_commands.proto:95

Return a writeable path that a plugin can use for storing persistent data such as configuration files, etc. This path may not yet exist; actual creation of the directory for a given plugin is up to the plugin itself. Files in this path will not be modified if the plugin is uninstalled or upgraded. Returns StringResponse

message GetSelection

editor_commands.proto:365

Retrieves a list of items. Returns SelectionResponse

message GetTextAsShapes

base_commands.proto:72

Render the given text object(s) as shapes. Depending on whether the text is using the KiCad stroke font or a custom font, the response will be a compound shape containing a set of polygons or a set of segments.

message GetTextAsShapesResponse

base_commands.proto:84

message GetTextExtents

base_commands.proto:55

returns kiapi.common.types.Box2

message GetTextVariables

project_commands.proto:113

returns kiapi.common.project.TextVariables

message GetTitleBlockInfo

editor_commands.proto:446

returns common.types.TitleBlockInfo

message GetVariants

variant_commands.proto:38

message GetVersion

base_commands.proto:27

(message has no fields)

message GetVersionResponse

base_commands.proto:31

message HighlightNets

cross_probe_commands.proto:107

message HighlightNetsResponse

cross_probe_commands.proto:112

message HitTest

editor_commands.proto:422

Tests if a certain point falls within tolerance of an item's geometry

message HitTestResponse

editor_commands.proto:440

enum HitTestResult

editor_commands.proto:433

Used in: HitTestResponse

message ItemCreationResult

editor_commands.proto:222

Used in: CreateItemsResponse

message ItemDeletionResult

editor_commands.proto:320

Used in: DeleteItemsResponse

enum ItemDeletionStatus

editor_commands.proto:312

Used in: ItemDeletionResult

message ItemStatus

editor_commands.proto:215

Per-item status feedback for creation and update calls

Used in: board.commands.ItemFlipResult, ItemCreationResult, ItemUpdateResult

enum ItemStatusCode

editor_commands.proto:203

Used in: ItemStatus

message ItemUpdateResult

editor_commands.proto:282

Used in: UpdateItemsResponse

message LibraryItemsResponse

library_commands.proto:170

Since: 11.0

message LibraryStatusResponse

library_commands.proto:119

Since: 11.0

message LibraryTableResponse

library_commands.proto:58

Since: 11.0

message LoadAllLibraries

library_commands.proto:148

Starts a background load of all libraries of the given types that are listed in the library tables. If no types are given, all library types are loaded. The command returns immediately and the load proceeds asynchronously; progress can be monitored with GetLibraryStatuses. In GUI mode this command is a no-op, because the GUI preloads libraries on its own. Returns LibraryCommandStatus Since: 11.0

message NetClassAssignmentsResponse

project_commands.proto:71

Since: 11.0

message NetClassesResponse

project_commands.proto:36

message OpenDocument

project_commands.proto:133

Opens a document (currently only supported in CLI api-server mode) A document cannot be opened unless no project is currently loaded or it is part of a currently loaded project. To switch projects, use CloseDocument or CloseAllDocuments to close existing documents.

message OpenDocumentResponse

project_commands.proto:141

message OpenLibraryItem

editor_commands.proto:39

Opens a specific item from a library by identifier

message PadSelectionSpec

cross_probe_commands.proto:59

Used in: SelectionSpec

message ParseAndCreateItemsFromString

editor_commands.proto:498

Attempts to parse the given string as a s-expression formatted container with items, similar to how the Paste action inside the KiCad editor works. If the parse is successful, the items will be created and inserted into the editor. Returns CreateItemsResponse

message PathEntry

base_commands.proto:114

Used in: GetPathsResponse

message PathResponse

base_commands.proto:49

message Ping

base_commands.proto:37

A command to check if the connection to KiCad is OK

(message has no fields)

message PlaceFromLibraryResponse

library_commands.proto:211

Since: 11.0

message RefreshEditor

editor_commands.proto:33

Refreshes the given frame, if that frame is open

message ReloadLibrary

library_commands.proto:129

Reloads library table row(s) from disk. This starts a reload process that operates asynchronously. The API command will return immediately but updated library content will not be available until the load has completed. Returns LibraryCommandStatus Since: 11.0

message RemoveFromSelection

editor_commands.proto:391

Removes the given items to the selection. Returns SelectionResponse

message RenameVariant

variant_commands.proto:74

message RevertDocument

editor_commands.proto:106

message RunAction

editor_commands.proto:117

Runs a TOOL_ACTION using the TOOL_MANAGER of a given frame. WARNING: The TOOL_ACTIONs are specifically *not* an API. Command names may change as code is refactored, and commands may disappear. This API method is provided for low-level prototyping purposes only.

message RunActionResponse

editor_commands.proto:133

NOTE: At the moment, RAS_FRAME_NOT_OPEN won't be returned as the handler is inside the frame.

enum RunActionStatus

editor_commands.proto:122

Used in: RunActionResponse

message SaveCopyOfDocument

editor_commands.proto:97

Saves the given document to a new location and does not open the new copy

message SaveDocument

project_commands.proto:164

Saves the given document to its existing file path. Returns an error if the document is untitled (it has never been saved to disk); use SaveDocumentAs to save an untitled document to an explicit path.

message SaveDocumentAs

editor_commands.proto:79

Saves the given document (and its project) to a new location and switches to the new project. Only available in headless mode; in GUI mode a project change may require closing other editor frames, which the API is not allowed to do. Since: 11.0

message SaveDocumentToString

editor_commands.proto:471

message SaveOptions

editor_commands.proto:86

Used in: SaveCopyOfDocument

message SaveSelectionToString

editor_commands.proto:483

(message has no fields)

message SavedDocumentResponse

editor_commands.proto:476

message SavedSelectionResponse

editor_commands.proto:487

message SearchLibraries

library_commands.proto:194

Requests items matching a search query in the given library scopes Returns SearchLibrariesResponse Since: 11.0

message SearchLibrariesResponse

library_commands.proto:204

Since: 11.0

message SelectionResponse

editor_commands.proto:376

The set of currently selected items

message SelectionSpec

cross_probe_commands.proto:66

Used in: FocusOnItem, SyncSelection

message SetCurrentVariant

variant_commands.proto:106

Selects the active variant in the editor (absent or empty name selects the default variant).

message SetNetClassAssignments

project_commands.proto:78

Since: 11.0

message SetNetClasses

project_commands.proto:42

message SetPageSettings

editor_commands.proto:464

message SetTextVariables

project_commands.proto:119

message SetTitleBlockInfo

editor_commands.proto:451

message SetVariantDescription

variant_commands.proto:83

message StringResponse

base_commands.proto:101

message SyncSelection

cross_probe_commands.proto:93

enum SyncSelectionContext

cross_probe_commands.proto:82

Used in: SyncSelection

enum SyncSelectionMode

cross_probe_commands.proto:75

Used in: SyncSelection

message SyncSelectionResponse

cross_probe_commands.proto:101

message TextOrTextBox

base_commands.proto:61

Used in: GetTextAsShapes, TextWithShapes

message TextWithShapes

base_commands.proto:77

Used in: GetTextAsShapesResponse

message UpdateItems

editor_commands.proto:272

Updates items in a given document

message UpdateItemsResponse

editor_commands.proto:290

message UpdateLibraryTableEntry

library_commands.proto:80

Modifies an existing row, matched by entry.nickname (and scope). Returns LibraryCommandStatus Since: 11.0

message VariantsResponse

variant_commands.proto:46