Reference
Layout kit commands
The 429 commands an AI agent can run on .klayout files with the Layout kit (0.1.0) through layout_run: what each does, its parameters and its result.
How an agent uses them
layout_commands finds commands by keywords; layout_run runs them as steps, { path, steps: [{ command, params }] }, then saves the file and answers each step’s result. With the server’s --unified tools the same commands go through kit_run. Setup: Agents (MCP).
Commands
429 commands
anchor
anchored
arrange
arrange.bringForwardBring Forwardchanges the documentarrange.bringToFrontBring to Frontchanges the documentarrange.groupGroupchanges the documentarrange.reorderMove in Stacking Orderchanges the documentarrange.sendBackwardSend Backwardchanges the documentarrange.sendToBackSend to Backchanges the documentarrange.ungroupUngroupchanges the document
article
book
bookmark
button
change
color
condition
conveyor
data
data.optionsData Merge Optionschanges the documentdata.placeholder.addInsert Fieldchanges the documentdata.placeholder.removeRemove Fieldchanges the documentdata.previewPreview Recorddata.preview.stopStop Previewchanges the documentdata.source.removeRemove Data Sourcechanges the documentdata.source.updateUpdate Data Sourcechanges the document
edit
edit.copyCopychanges the documentedit.cutCutchanges the documentedit.deleteClearchanges the documentedit.deselectAllDeselect Allchanges the documentedit.duplicateDuplicatechanges the documentedit.findFindedit.findNextFind Nextchanges the documentedit.findObjectsFind Objectchanges the documentedit.pastePastechanges the documentedit.pasteInPlacePaste in Placechanges the documentedit.pasteIntoPaste Intochanges the documentedit.pasteWithoutFormattingPaste without Formattingchanges the documentedit.redoRedochanges the documentedit.replaceChange Allchanges the documentedit.replaceObjectsChange All (Object)changes the documentedit.selectAllSelect Allchanges the documentedit.stepAndRepeatStep and Repeatchanges the documentedit.transparencyBlendSpaceTransparency Blend Spacechanges the documentedit.undoUndochanges the document
endnote
file
file.activateActivate Documentchanges the documentfile.applyTemplateNew from Templatechanges the documentfile.closeClosechanges the documentfile.exportBytesExport as Bytesfile.exportImageExport Imagechanges the documentfile.historyHistoryfile.inspectInspect Documentfile.listList Documentsfile.newDocumentchanges the documentfile.newSampleSample Documentchanges the documentfile.openBytesOpen Byteschanges the documentfile.placePlacechanges the documentfile.preferencesDocument Preferenceschanges the documentfile.presetsDocument Presetsfile.renderRender Previewfile.revertRevertchanges the documentfile.serializeSerialize
font
footnote
footnote.deleteDelete Footnotechanges the documentfootnote.goToReferenceGo to Footnote Referencechanges the documentfootnote.insertInsert Footnotechanges the documentfootnote.listFootnotesfootnote.optionsDocument Footnote Optionschanges the documentfootnote.setTextSet Footnote Textchanges the document
form
format
format.alignCenterAlign Centerchanges the documentformat.alignLeftAlign Leftchanges the documentformat.alignRightAlign Rightchanges the documentformat.boldBoldchanges the documentformat.decreaseFontSizeDecrease Point Sizechanges the documentformat.increaseFontSizeIncrease Point Sizechanges the documentformat.italicItalicchanges the documentformat.justifyJustify Leftchanges the documentformat.underlineUnderlinechanges the document
frame
gap
guide
hyphenation
index
ink
layer
layer.activateSet Active Layerchanges the documentlayer.deleteDelete Layerchanges the documentlayer.deleteUnusedDelete Unused Layerschanges the documentlayer.duplicateDuplicate Layerchanges the documentlayer.mergeMerge Layerschanges the documentlayer.moveMove Layerchanges the documentlayer.newNew Layerchanges the documentlayer.othersHide/Lock Otherschanges the documentlayer.selectItemsSelect All on Layerchanges the documentlayer.setLayer Optionschanges the document
layout
layout.addAlternateCreate Alternate Layoutchanges the documentlayout.addGuidesCreate Guideschanges the documentlayout.deleteAlternateDelete Alternate Layoutchanges the documentlayout.detachAllDetach All Objects from Parentchanges the documentlayout.documentSetupDocument Setupchanges the documentlayout.listLayoutslayout.marginsAndColumnsMargins and Columnschanges the documentlayout.overrideParentItemsOverride All Parent Page Itemschanges the documentlayout.pageSizePage Sizechanges the documentlayout.pages.applyParentApply Parent to Pageschanges the documentlayout.pages.deleteDelete Pageschanges the documentlayout.pages.duplicateSpreadDuplicate Spreadchanges the documentlayout.pages.insertInsert Pageschanges the documentlayout.pages.moveMove Pageschanges the documentlayout.pages.toSpreadAdd Page to Spreadchanges the documentlayout.parents.deleteDelete Parent Spreadchanges the documentlayout.parents.duplicateDuplicate Parent Spreadchanges the documentlayout.parents.editEdit Parentschanges the documentlayout.parents.newNew Parentchanges the documentlayout.parents.setParent Page Optionschanges the documentlayout.removeOverridesRemove All Local Overrideschanges the documentlayout.rotateSpreadViewRotate Spreadchanges the documentlayout.sectionNumbering & Section Optionschanges the documentlayout.spreadShuffleAllow Selected Spread to Shufflechanges the document
library
line
link
linkedFile
liquid
list
math
media
note
object
object.alignAlignchanges the documentobject.altTextObject Export Optionschanges the documentobject.arrangeArrangechanges the documentobject.attributesAttributeschanges the documentobject.bevelBevel and Embosschanges the documentobject.captionGenerate Static Captionchanges the documentobject.clippingPathClipping Pathchanges the documentobject.colorApply Colorchanges the documentobject.contentContentchanges the documentobject.convertShapeConvert Shapechanges the documentobject.cornerOptionsCorner Optionschanges the documentobject.directionalFeatherDirectional Featherchanges the documentobject.distributeDistributechanges the documentobject.dropShadowDrop Shadowchanges the documentobject.exportOptionsObject Export Optionschanges the documentobject.featherBasic Featherchanges the documentobject.fillFillchanges the documentobject.findByLabelFind by Script Labelobject.fitFittingchanges the documentobject.fittingOptionsFrame Fitting Optionschanges the documentobject.globalLightGlobal Lightchanges the documentobject.gradientGradientchanges the documentobject.gradientFeatherGradient Featherchanges the documentobject.hideHidechanges the documentobject.innerGlowInner Glowchanges the documentobject.innerShadowInner Shadowchanges the documentobject.labelScript Labelchanges the documentobject.layerOptionsObject Layer Optionschanges the documentobject.lockLockchanges the documentobject.makeCompoundPathMake Compound Pathchanges the documentobject.matchAttributesApply Attributes (Eyedropper)changes the documentobject.opacityOpacitychanges the documentobject.outerGlowOuter Glowchanges the documentobject.pathfinderPathfinderchanges the documentobject.pdfLayersObject Layersobject.primaryTextFramePrimary Text Framechanges the documentobject.qrCodeGenerate QR Codechanges the documentobject.releaseCompoundPathRelease Compound Pathchanges the documentobject.renameRenamechanges the documentobject.satinSatinchanges the documentobject.setFlagsSet Visibility / Lockchanges the documentobject.setLayerMove to Layerchanges the documentobject.showAllShow All on Spreadchanges the documentobject.strokeStrokechanges the documentobject.textFrameOptionsText Frame Optionschanges the documentobject.textWrapText Wrapchanges the documentobject.transparencyGroupGroup Transparencychanges the documentobject.unlockAllUnlock All on Spreadchanges the document
page
path
path.addCreate Pathchanges the documentpath.addAnchorAdd Anchor Pointchanges the documentpath.appendAnchorAdd Anchorchanges the documentpath.closeClose Pathchanges the documentpath.convertAnchorConvert Direction Pointchanges the documentpath.deleteAnchorDelete Anchor Pointchanges the documentpath.eraseErasechanges the documentpath.moveAnchorsMove Anchorschanges the documentpath.smoothSmoothchanges the documentpath.splitSplit Pathchanges the document
place
preflight
prefs
script
select
select.containerContainerchanges the documentselect.contentContentchanges the documentselect.firstAboveFirst Object Abovechanges the documentselect.lastBelowLast Object Belowchanges the documentselect.nextAboveNext Object Abovechanges the documentselect.nextBelowNext Object Belowchanges the documentselect.nextInGroupNext Object in Groupchanges the documentselect.previousInGroupPrevious Object in Groupchanges the documentselect.setSelectchanges the documentselect.toggleToggle Selectionchanges the document
spelling
state
story
story.getGet Storystory.linksLinked Storiesstory.placeAndLinkPlace and Linkchanges the documentstory.replaceRangeEdit Storychanges the documentstory.setDirectionStory Column Directionchanges the documentstory.setTextSet Story Textchanges the documentstory.unlinkUnlinkchanges the documentstory.updateLinkUpdate Linkchanges the document
strokeStyle
style
style.breakLinkBreak Link to Stylechanges the documentstyle.cell.addNew Cell Stylechanges the documentstyle.cell.applyApply Cell Stylechanges the documentstyle.cell.editCell Style Optionschanges the documentstyle.character.addNew Character Stylechanges the documentstyle.character.applyApply Character Stylechanges the documentstyle.character.deleteDelete Character Stylechanges the documentstyle.character.editCharacter Style Optionschanges the documentstyle.compositeFont.listList Composite Fontsstyle.compositeFont.setSet Composite Fontchanges the documentstyle.exportTagExport Taggingchanges the documentstyle.groupMove to Groupchanges the documentstyle.listList Stylesstyle.object.addNew Object Stylechanges the documentstyle.object.applyApply Object Stylechanges the documentstyle.object.deleteDelete Object Stylechanges the documentstyle.object.editObject Style Optionschanges the documentstyle.paragraph.addNew Paragraph Stylechanges the documentstyle.paragraph.applyApply Paragraph Stylechanges the documentstyle.paragraph.deleteDelete Paragraph Stylechanges the documentstyle.paragraph.editParagraph Style Optionschanges the documentstyle.table.addNew Table Stylechanges the documentstyle.table.applyApply Table Stylechanges the documentstyle.table.editTable Style Optionschanges the document
swatch
swatch.addNew Color Swatchchanges the documentswatch.addToSwatchesAdd to Swatcheschanges the documentswatch.addUnnamedAdd Unnamed Colorschanges the documentswatch.deleteDelete Swatchchanges the documentswatch.moveToGroupMove to Color Groupchanges the documentswatch.newColorGroupNew Color Groupchanges the documentswatch.renameColorGroupColor Group Optionschanges the documentswatch.setSwatch Optionschanges the documentswatch.ungroupColorGroupUngroup Color Groupchanges the document
table
table.convertFromTextConvert Text to Tablechanges the documenttable.convertToTextConvert Table to Textchanges the documenttable.deleteDelete Tablechanges the documenttable.deleteColumnDelete Columnchanges the documenttable.deleteRowDelete Rowchanges the documenttable.distributeColumnsDistribute Columns Evenlychanges the documenttable.distributeRowsDistribute Rows Evenlychanges the documenttable.dropCellsDrag Rows or Columnschanges the documenttable.getGet Tabletable.insertCreate Tablechanges the documenttable.insertColumnInsert Columnchanges the documenttable.insertColumnLeftInsert Column Leftchanges the documenttable.insertColumnRightInsert Column Rightchanges the documenttable.insertRowInsert Rowchanges the documenttable.insertRowAboveInsert Row Abovechanges the documenttable.insertRowBelowInsert Row Belowchanges the documenttable.mergeMerge Cellschanges the documenttable.moveColumnMove Columnchanges the documenttable.moveRowMove Rowchanges the documenttable.nextCellNext Cellchanges the documenttable.optionsTable Optionschanges the documenttable.prevCellPrevious Cellchanges the documenttable.resizeBorderResize Row or Columnchanges the documenttable.selectSelect Cellschanges the documenttable.selectColumnSelect Columnchanges the documenttable.selectRowSelect Rowchanges the documenttable.selectTableSelect Tablechanges the documenttable.setCellCell Optionschanges the documenttable.setColumnWidthColumn Widthchanges the documenttable.setRowHeightRow Heightchanges the documenttable.sortRowsSortchanges the documenttable.splitHorizontallySplit Cell Horizontallychanges the documenttable.splitVerticallySplit Cell Verticallychanges the documenttable.textCellConvert Cell to Text Cellchanges the documenttable.unmergeUnmerge Cellschanges the document
template
text
text.alignAlignchanges the documenttext.allCapsAll Capschanges the documenttext.changeCaseChange Casechanges the documenttext.charCharacter Formattingchanges the documenttext.convertToOutlinesCreate Outlineschanges the documenttext.deleteDelete Textchanges the documenttext.exitToFrameSelect Framechanges the documenttext.extendToExtend Text Selectionchanges the documenttext.fillWithPlaceholderFill with Placeholder Textchanges the documenttext.insertTypechanges the documenttext.insertSpecialInsert Special Characterchanges the documenttext.kentenKentenchanges the documenttext.moveMove Caretchanges the documenttext.onPathType on a Pathchanges the documenttext.openTypeOpenTypechanges the documenttext.paraParagraph Formattingchanges the documenttext.pathOptionsType on a Path Optionschanges the documenttext.placeCaretPlace Caretchanges the documenttext.releaseReleasechanges the documenttext.rubyRubychanges the documenttext.selectSelect Textchanges the documenttext.selectWordSelect Wordchanges the documenttext.selectionAttrsSelection Attributestext.storyDirectionStory Directionchanges the documenttext.tateChuYokoTate-Chu-Yokochanges the documenttext.warichuWarichuchanges the document
toc
tool
transform
transform.againTransform Againchanges the documenttransform.clearClear Transformationschanges the documenttransform.flipFlipchanges the documenttransform.infoTransform Valuestransform.moveMovechanges the documenttransform.resizeResizechanges the documenttransform.rotateRotatechanges the documenttransform.scaleScalechanges the documenttransform.setTransform Panelchanges the documenttransform.shearShearchanges the document
variable
view
xml
xml.deleteDtdDelete DTDchanges the documentxml.deleteTagDelete Tagchanges the documentxml.mapStyleMap Styles to Tagschanges the documentxml.newTagNew Tagchanges the documentxml.structureStructurexml.tagTag Framechanges the documentxml.tagTextTag Textchanges the documentxml.tagsTagsxml.validateValidate from Root Element
xref
Generated from the command list of @kition/[email protected], its kit.json and the kit itself (layout_commands through @kition/[email protected], built from KitionAI/kition-layout@8767a18). All of them as JSON Lines: commands.jsonl.